org.utgenome.gwt.utgb.client.util
Class Optional<T>

java.lang.Object
  extended by org.utgenome.gwt.utgb.client.util.Optional<T>

public class Optional<T>
extends Object

variable holder that can distinguish defined/undefined states.

Author:
leo

Constructor Summary
Optional()
           
 
Method Summary
 T get()
           
 boolean isDefined()
           
 boolean isUndefined()
           
 void reset()
           
 void set(T value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Optional

public Optional()
Method Detail

isDefined

public boolean isDefined()

isUndefined

public boolean isUndefined()

get

public T get()

set

public void set(T value)

reset

public void reset()


Copyright © 2007-2012 utgenome.org. All Rights Reserved.