org.pfsw.reflect
Interface IValueHolder<T>

All Known Implementing Classes:
BigDecimalFieldProxy, FieldProxy, IntegerFieldProxy, LongFieldProxy, NumericFieldProxy

public interface IValueHolder<T>

A generic interface to a single value held by another object. is the type of the held object.


Method Summary
 T get()
          Returns the current value (might be null).
 boolean isNull()
          Returns whether or not the underlying value is null.
 boolean isPresent()
          Returns whether or not the underlying value is not null.
 void set(T value)
          Sets the current value.
 

Method Detail

get

T get()
Returns the current value (might be null).


set

void set(T value)
Sets the current value.

Parameters:
value - The new value (might be null).

isNull

boolean isNull()
Returns whether or not the underlying value is null.


isPresent

boolean isPresent()
Returns whether or not the underlying value is not null.