Project Wonder 5.0

er.extensions.foundation
Class ERXLazyValue.ConstantSource<T>

java.lang.Object
  extended by er.extensions.foundation.ERXLazyValue.ConstantSource<T>
Type Parameters:
T - the type of the value
All Implemented Interfaces:
ERXLazyValue.Source<T>
Enclosing class:
ERXLazyValue<T>

public static class ERXLazyValue.ConstantSource<T>
extends java.lang.Object
implements ERXLazyValue.Source<T>

ConstantSource provides a Source implementation on top of a fixed value.

Author:
mschrag

Constructor Summary
ERXLazyValue.ConstantSource(T value)
          Constructs a ConstantSource with a fixed value.
 
Method Summary
 void setValue(T value)
          Sets a new fixed value.
 java.lang.String toString()
           
 T value()
          Returns the fixed value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ERXLazyValue.ConstantSource

public ERXLazyValue.ConstantSource(T value)
Constructs a ConstantSource with a fixed value.

Parameters:
value - the value
Method Detail

value

public T value()
Returns the fixed value.

Specified by:
value in interface ERXLazyValue.Source<T>
Returns:
the fixed value

setValue

public void setValue(T value)
Sets a new fixed value.

Specified by:
setValue in interface ERXLazyValue.Source<T>
Parameters:
value - the new value

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

Last updated: Tue, Feb 21, 2017 • 05:45 PM CET

Copyright © 2002 – 2007 Project Wonder.