play.libs
Class F.None<T>
java.lang.Object
play.libs.F.Option<T>
play.libs.F.None<T>
- All Implemented Interfaces:
- java.lang.Iterable<T>, java.util.Collection<T>
- Enclosing class:
- F
public static class F.None<T>
- extends F.Option<T>
Represents non-existent values.
Methods inherited from class play.libs.F.Option |
add, addAll, clear, getOrElse, isEmpty, map, None, remove, removeAll, retainAll, Some |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Collection |
equals, hashCode |
F.None
public F.None()
isDefined
public boolean isDefined()
- Description copied from class:
F.Option
- Is the value of this option defined?
- Specified by:
isDefined
in class F.Option<T>
- Returns:
true
if the value is defined, otherwise false
.
size
public int size()
get
public T get()
- Description copied from class:
F.Option
- Returns the value if defined.
- Specified by:
get
in class F.Option<T>
- Returns:
- The value if defined, otherwise
null
.
iterator
public java.util.Iterator<T> iterator()
contains
public boolean contains(java.lang.Object o)
containsAll
public boolean containsAll(java.util.Collection<?> c)
toArray
public java.lang.Object[] toArray()
toArray
public <R> R[] toArray(R[] r)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object