Package com.fauna.types
Class NullDocument<T>
- java.lang.Object
-
- com.fauna.types.NullableDocument<T>
-
- com.fauna.types.NullDocument<T>
-
public final class NullDocument<T> extends NullableDocument<T>
-
-
Constructor Summary
Constructors Constructor Description NullDocument(java.lang.String id, Module coll, java.lang.String cause)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
T
get()
java.lang.String
getCause()
Get the cause of the null document.Module
getCollection()
Get the Collection associated with the null document.java.lang.String
getId()
Get the ID of the null document.int
hashCode()
-
-
-
Constructor Detail
-
NullDocument
public NullDocument(java.lang.String id, Module coll, java.lang.String cause)
-
-
Method Detail
-
getCause
public java.lang.String getCause()
Get the cause of the null document.- Returns:
- A string describing the cause of the null document.
-
get
public T get()
- Specified by:
get
in classNullableDocument<T>
-
getId
public java.lang.String getId()
Get the ID of the null document.- Returns:
- The document ID.
-
getCollection
public Module getCollection()
Get the Collection associated with the null document.- Returns:
- A Module representing the collection.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-