Package com.evolveum.midpoint.util
Class Holder<T>
- java.lang.Object
-
- com.evolveum.midpoint.util.Holder<T>
-
- All Implemented Interfaces:
Consumer<T>
- Direct Known Subclasses:
PassingHolder
public class Holder<T> extends Object implements Consumer<T>
Very simple object to hold a single value. This comes handy when a final value is required but there is a need to use immutable value (e.g. int, String). This comes very handy in Java anonymous instances (almost-closures).- Author:
- Radovan Semancik
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(T t)booleanequals(Object obj)TgetValue()inthashCode()booleanisEmpty()voidsetValue(T value)StringtoString()
-