Package com.google.protobuf
Class SmallSortedMap.Entry
- java.lang.Object
-
- com.google.protobuf.SmallSortedMap.Entry
-
- All Implemented Interfaces:
java.lang.Comparable<SmallSortedMap.Entry>
,java.util.Map.Entry<K,V>
- Enclosing class:
- SmallSortedMap<K extends java.lang.Comparable<K>,V>
private class SmallSortedMap.Entry extends java.lang.Object implements java.util.Map.Entry<K,V>, java.lang.Comparable<SmallSortedMap.Entry>
Entry implementation that implements Comparable in order to support binary search within the entry array. Also checks mutability in#setValue()
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(SmallSortedMap.Entry other)
boolean
equals(java.lang.Object o)
private boolean
equals(java.lang.Object o1, java.lang.Object o2)
equals() that handles null values.K
getKey()
V
getValue()
int
hashCode()
V
setValue(V newValue)
java.lang.String
toString()
-
-
-
Method Detail
-
getKey
public K getKey()
-
getValue
public V getValue()
-
compareTo
public int compareTo(SmallSortedMap.Entry other)
- Specified by:
compareTo
in interfacejava.lang.Comparable<SmallSortedMap.Entry>
-
equals
public boolean equals(java.lang.Object o)
-
hashCode
public int hashCode()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
private boolean equals(java.lang.Object o1, java.lang.Object o2)
equals() that handles null values.
-
-