Package com.fauna.types
Class NonNullDocument<T>
- java.lang.Object
-
- com.fauna.types.NullableDocument<T>
-
- com.fauna.types.NonNullDocument<T>
-
public final class NonNullDocument<T> extends NullableDocument<T>
-
-
Constructor Summary
Constructors Constructor Description NonNullDocument(T val)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
T
get()
Get the wrapped value.T
getValue()
Get the wrapped value.int
hashCode()
-
-
-
Constructor Detail
-
NonNullDocument
public NonNullDocument(T val)
-
-
Method Detail
-
get
public T get()
Get the wrapped value.- Specified by:
get
in classNullableDocument<T>
- Returns:
- The wrapped value
-
getValue
public T getValue()
Get the wrapped value.- Returns:
- The wrapped value
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-