Package io.debezium.document
Class BasicEntry
- java.lang.Object
-
- io.debezium.document.BasicEntry
-
- All Implemented Interfaces:
Array.Entry,Comparable<Array.Entry>
@Immutable final class BasicEntry extends Object implements Array.Entry, Comparable<Array.Entry>
Package-level implementation ofArray.Entryin anArray.- Author:
- Randall Hauch
-
-
Constructor Summary
Constructors Constructor Description BasicEntry(int index, Value value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(Array.Entry that)booleanequals(Object obj)intgetIndex()Get the index of the entryValuegetValue()Get the value of the entry.inthashCode()StringtoString()
-
-
-
Field Detail
-
index
private final int index
-
value
private final Value value
-
-
Constructor Detail
-
BasicEntry
BasicEntry(int index, Value value)
-
-
Method Detail
-
getIndex
public int getIndex()
Description copied from interface:Array.EntryGet the index of the entry- Specified by:
getIndexin interfaceArray.Entry- Returns:
- the entry's index; never null
-
getValue
public Value getValue()
Description copied from interface:Array.EntryGet the value of the entry.- Specified by:
getValuein interfaceArray.Entry- Returns:
- the entry's value; may be null
-
compareTo
public int compareTo(Array.Entry that)
- Specified by:
compareToin interfaceArray.Entry- Specified by:
compareToin interfaceComparable<Array.Entry>
-
-