Package io.debezium.document
Class BasicField
- java.lang.Object
-
- io.debezium.document.BasicField
-
- All Implemented Interfaces:
Document.Field,Comparable<Document.Field>
@Immutable final class BasicField extends Object implements Document.Field, Comparable<Document.Field>
Package-level implementation of aDocument.Fieldinside aDocument.- Author:
- Randall Hauch
-
-
Field Summary
Fields Modifier and Type Field Description private CharSequencenameprivate Valuevalue
-
Constructor Summary
Constructors Constructor Description BasicField(CharSequence name, Value value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(Document.Field that)booleanequals(Object obj)CharSequencegetName()Get the name of the fieldValuegetValue()Get the value of the field.inthashCode()StringtoString()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface io.debezium.document.Document.Field
isNotNull, isNull
-
-
-
-
Field Detail
-
name
private final CharSequence name
-
value
private final Value value
-
-
Constructor Detail
-
BasicField
BasicField(CharSequence name, Value value)
-
-
Method Detail
-
getName
public CharSequence getName()
Description copied from interface:Document.FieldGet the name of the field- Specified by:
getNamein interfaceDocument.Field- Returns:
- the field's name; never null
-
getValue
public Value getValue()
Description copied from interface:Document.FieldGet the value of the field.- Specified by:
getValuein interfaceDocument.Field- Returns:
- the field's value; may be null
-
compareTo
public int compareTo(Document.Field that)
- Specified by:
compareToin interfaceComparable<Document.Field>- Specified by:
compareToin interfaceDocument.Field
-
-