@Immutable public class ImmutableField extends Object implements Document.Field
| Constructor and Description |
|---|
ImmutableField(String name,
Object value) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Document.Field that) |
boolean |
equals(Object obj) |
String |
getName()
Get the name of the field
|
Object |
getValue()
Get the value of the field.
|
Binary |
getValueAsBinary() |
boolean |
getValueAsBoolean() |
Document |
getValueAsDocument() |
Double |
getValueAsDouble() |
Integer |
getValueAsInt() |
Number |
getValueAsNumber() |
Pattern |
getValueAsPattern() |
String |
getValueAsString() |
UUID |
getValueAsUuid() |
int |
hashCode() |
String |
toString() |
public int compareTo(Document.Field that)
compareTo in interface Comparable<Document.Field>public String getName()
Document.FieldgetName in interface Document.Fieldpublic Object getValue()
Document.FieldgetValue in interface Document.Fieldpublic String getValueAsString()
getValueAsString in interface Document.Fieldpublic Integer getValueAsInt()
getValueAsInt in interface Document.Fieldpublic boolean getValueAsBoolean()
getValueAsBoolean in interface Document.Fieldpublic Binary getValueAsBinary()
getValueAsBinary in interface Document.Fieldpublic Document getValueAsDocument()
getValueAsDocument in interface Document.Fieldpublic Number getValueAsNumber()
getValueAsNumber in interface Document.Fieldpublic Pattern getValueAsPattern()
getValueAsPattern in interface Document.Fieldpublic Double getValueAsDouble()
getValueAsDouble in interface Document.Fieldpublic UUID getValueAsUuid()
getValueAsUuid in interface Document.FieldCopyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.