Modifier and Type | Method and Description |
---|---|
boolean |
contains(String key)
Tests whether a property exists or not.
|
int |
count()
Gets a number of the entries in the dictionary.
|
boolean |
equals(Object o) |
Array |
getArray(String key)
Get a property's value as a Array, which is a mapping object of an array value.
|
Blob |
getBlob(String key)
Gets a property's value as a Blob.
|
boolean |
getBoolean(String key)
Gets a property's value as a boolean.
|
Date |
getDate(String key)
Gets a property's value as a Date.
|
Dictionary |
getDictionary(String key)
Get a property's value as a Dictionary, which is a mapping object of
a Dictionary value.
|
double |
getDouble(String key)
Gets a property's value as an double.
|
float |
getFloat(String key)
Gets a property's value as an float.
|
String |
getId()
return the document's ID.
|
int |
getInt(String key)
Gets a property's value as an int.
|
List<String> |
getKeys()
Get an List containing all keys, or an empty List if the document has no properties.
|
long |
getLong(String key)
Gets a property's value as an long.
|
Number |
getNumber(String key)
Gets a property's value as a Number.
|
long |
getSequence()
Return the sequence number of the document in the database.
|
String |
getString(String key)
Gets a property's value as a String.
|
Object |
getValue(String key)
Gets a property's value as an object.
|
int |
hashCode() |
boolean |
isDeleted()
Return whether the document is deleted
|
Iterator<String> |
iterator()
Gets an iterator over the keys of the document's properties
|
Map<String,Object> |
toMap()
Gets content of the current object as an Map.
|
MutableDocument |
toMutable()
Return a mutable copy of the document
|
getClass, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public String getId()
public long getSequence()
public boolean isDeleted()
public MutableDocument toMutable()
public int count()
public List<String> getKeys()
public Object getValue(String key)
key
- the key.public String getString(String key)
key
- the keypublic Number getNumber(String key)
key
- the keypublic int getInt(String key)
key
- the keypublic long getLong(String key)
key
- the keypublic float getFloat(String key)
key
- the keypublic double getDouble(String key)
key
- the keypublic boolean getBoolean(String key)
key
- the keypublic Blob getBlob(String key)
key
- the keypublic Date getDate(String key)
key
- the keypublic Array getArray(String key)
key
- the keypublic Dictionary getDictionary(String key)
key
- the keypublic Map<String,Object> toMap()
public boolean contains(String key)
key
- the keypublic Iterator<String> iterator()