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 a
Document.Field inside a Document.- Author:
- Randall Hauch
-
Field Details
-
name
-
value
-
-
Constructor Details
-
BasicField
BasicField(CharSequence name, Value value)
-
-
Method Details
-
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
Description copied from interface:Document.FieldGet the value of the field.- Specified by:
getValuein interfaceDocument.Field- Returns:
- the field's value; may be null
-
toString
-
hashCode
public int hashCode() -
equals
-
compareTo
- Specified by:
compareToin interfaceComparable<Document.Field>- Specified by:
compareToin interfaceDocument.Field
-