@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.Field
getName
in interface Document.Field
public Object getValue()
Document.Field
getValue
in interface Document.Field
public String getValueAsString()
getValueAsString
in interface Document.Field
public Integer getValueAsInt()
getValueAsInt
in interface Document.Field
public boolean getValueAsBoolean()
getValueAsBoolean
in interface Document.Field
public Binary getValueAsBinary()
getValueAsBinary
in interface Document.Field
public Document getValueAsDocument()
getValueAsDocument
in interface Document.Field
public Number getValueAsNumber()
getValueAsNumber
in interface Document.Field
public Pattern getValueAsPattern()
getValueAsPattern
in interface Document.Field
public Double getValueAsDouble()
getValueAsDouble
in interface Document.Field
public UUID getValueAsUuid()
getValueAsUuid
in interface Document.Field
Copyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.