@Immutable final class BasicField extends Object implements Document.Field, Comparable<Document.Field>
Document.Field inside a Document.| Modifier and Type | Field and Description |
|---|---|
private CharSequence |
name |
private Value |
value |
| Constructor and Description |
|---|
BasicField(CharSequence name,
Value value) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Document.Field that) |
boolean |
equals(Object obj) |
CharSequence |
getName()
Get the name of the field
|
Value |
getValue()
Get the value of the field.
|
int |
hashCode() |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitisNotNull, isNullprivate final CharSequence name
private final Value value
BasicField(CharSequence name, Value value)
public CharSequence getName()
Document.FieldgetName in interface Document.Fieldpublic Value getValue()
Document.FieldgetValue in interface Document.Fieldpublic int compareTo(Document.Field that)
compareTo in interface Document.FieldcompareTo in interface Comparable<Document.Field>Copyright © 2020 JBoss by Red Hat. All rights reserved.