|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.refractions.udig.core.Option<T>
public abstract class Option<T>
An object that indicates that it can either be None or have a value. This for return values so that they don't return null as a value and is dangerously NullPointerException prone.
A user will always do an instance of check to see if it is a Option.Some
or Option.None
. This
class should not be further extended
Option.None
,
Option.Some
Nested Class Summary | |
---|---|
static class |
Option.None<V>
Indicates a none or null value. |
static class |
Option.Some<V>
|
Field Summary | |
---|---|
static Option |
NONE
|
Method Summary |
---|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final Option NONE
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |