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 intcompareTo(SmallSortedMap.Entry other)booleanequals(java.lang.Object o)private booleanequals(java.lang.Object o1, java.lang.Object o2)equals() that handles null values.KgetKey()VgetValue()inthashCode()VsetValue(V newValue)java.lang.StringtoString()
-
-
-
Method Detail
-
getKey
public K getKey()
-
getValue
public V getValue()
-
compareTo
public int compareTo(SmallSortedMap.Entry other)
- Specified by:
compareToin interfacejava.lang.Comparable<SmallSortedMap.Entry>
-
equals
public boolean equals(java.lang.Object o)
-
hashCode
public int hashCode()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
private boolean equals(java.lang.Object o1, java.lang.Object o2)equals() that handles null values.
-
-