net.refractions.udig.core
Class Option<T>

java.lang.Object
  extended by net.refractions.udig.core.Option<T>
Direct Known Subclasses:
Option.None, Option.Some

public abstract class Option<T>
extends java.lang.Object

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

Since:
1.1.0
Author:
jesse
See Also:
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

NONE

public static final Option NONE