| 
 | Search this API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecty.io.graphml.Future
public class Future
A helper holder class that can contain a getValue().
 
 Typically hasValue() will be false
 until at a later point in time onValueDetermined(Object)
 is called and the getValue()
 and hasValue() properties are being updated.
 
| Constructor Summary | |
|---|---|
| Future()Initializes a new instance of the Futureclass. | |
| Future(java.lang.Object defaultValue)Initializes a new instance of the Futureclass. | |
| Method Summary | |
|---|---|
|  java.lang.Object | getValue()Returns the value of this future. | 
|  boolean | hasValue()Gets a value indicating whether this instance has been assigned a getValue(). | 
|  void | onValueDetermined(java.lang.Object value)Called when the valueproperty of this future has been
 determined. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public Future()
Future class.
public Future(java.lang.Object defaultValue)
Future class.
 
 Note that hasValue() will still be false until
 onValueDetermined(Object) is called.
 
defaultValue - The default value.| Method Detail | 
|---|
public java.lang.Object getValue()
hasValue() yields true.
hasValue()public boolean hasValue()
getValue().
true if this instance has been assigned a value;
 false otherwise.onValueDetermined(Object), 
getValue()public void onValueDetermined(java.lang.Object value)
value property of this future has been
 determined.
 
 This will set the hasValue() property to true and
 assign the value property.
 
value - The value.getValue()| 
 | © Copyright 2000-2025, yWorks GmbH. All rights reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||