com.evolveum.midpoint.util
Class Holder<T>

java.lang.Object
  extended by com.evolveum.midpoint.util.Holder<T>

public class Holder<T>
extends java.lang.Object

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

Constructor Summary
Holder(T value)
           
 
Method Summary
 T getValue()
           
 void setValue(T value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Holder

public Holder(T value)
Method Detail

getValue

public T getValue()

setValue

public void setValue(T value)


Copyright © 2012 evolveum. All Rights Reserved.