Package com.google.gson.internal
Class LinkedTreeMap.Node<K,V>
- java.lang.Object
-
- com.google.gson.internal.LinkedTreeMap.Node<K,V>
-
- All Implemented Interfaces:
java.util.Map.Entry<K,V>
- Enclosing class:
- LinkedTreeMap<K,V>
static final class LinkedTreeMap.Node<K,V> extends java.lang.Object implements java.util.Map.Entry<K,V>
-
-
Field Summary
Fields Modifier and Type Field Description (package private) boolean
allowNullValue
(package private) int
height
(package private) K
key
(package private) LinkedTreeMap.Node<K,V>
left
(package private) LinkedTreeMap.Node<K,V>
next
(package private) LinkedTreeMap.Node<K,V>
parent
(package private) LinkedTreeMap.Node<K,V>
prev
(package private) LinkedTreeMap.Node<K,V>
right
(package private) V
value
-
Constructor Summary
Constructors Constructor Description Node(boolean allowNullValue)
Create the header entryNode(boolean allowNullValue, LinkedTreeMap.Node<K,V> parent, K key, LinkedTreeMap.Node<K,V> next, LinkedTreeMap.Node<K,V> prev)
Create a regular entry
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
LinkedTreeMap.Node<K,V>
first()
Returns the first node in this subtree.K
getKey()
V
getValue()
int
hashCode()
LinkedTreeMap.Node<K,V>
last()
Returns the last node in this subtree.V
setValue(V value)
java.lang.String
toString()
-
-
-
Field Detail
-
parent
LinkedTreeMap.Node<K,V> parent
-
left
LinkedTreeMap.Node<K,V> left
-
right
LinkedTreeMap.Node<K,V> right
-
next
LinkedTreeMap.Node<K,V> next
-
prev
LinkedTreeMap.Node<K,V> prev
-
key
final K key
-
allowNullValue
final boolean allowNullValue
-
value
V value
-
height
int height
-
-
Constructor Detail
-
Node
Node(boolean allowNullValue)
Create the header entry
-
Node
Node(boolean allowNullValue, LinkedTreeMap.Node<K,V> parent, K key, LinkedTreeMap.Node<K,V> next, LinkedTreeMap.Node<K,V> prev)
Create a regular entry
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object o)
-
hashCode
public int hashCode()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
first
public LinkedTreeMap.Node<K,V> first()
Returns the first node in this subtree.
-
last
public LinkedTreeMap.Node<K,V> last()
Returns the last node in this subtree.
-
-