|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.neu.ccs.demeterf.util.Option
public class Option
Mimics ML Option type ((Some o) | None). Used to make traversal arguments optional without losing performance.
Method Summary | |
---|---|
java.lang.Object |
get()
|
static Option |
none()
|
boolean |
some()
|
static Option |
some(java.lang.Object o)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Option some(java.lang.Object o)
public static Option none()
public boolean some()
public java.lang.Object get()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |