Class ListMap.Node<K,V>
java.lang.Object
com.github.andrewoma.dexx.collection.internal.base.AbstractTraversable<Pair<K,V>>
com.github.andrewoma.dexx.collection.internal.base.AbstractIterable<Pair<K,V>>
com.github.andrewoma.dexx.collection.internal.base.AbstractMap<K,V>
com.github.andrewoma.dexx.collection.internal.hashmap.ListMap<K,V>
com.github.andrewoma.dexx.collection.internal.hashmap.ListMap.Node<K,V>
- All Implemented Interfaces:
Iterable<Pair<K,V>>, Map<K, V>, Traversable<Pair<K, V>>, Iterable<Pair<K, V>>
-
Nested Class Summary
Nested classes/interfaces inherited from class ListMap
ListMap.Node<K,V> -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsKey(K key) Returns true if this map contains the specified key.Returns the value associated with the key ornullif the no value exists with the key specified.protected KgetKey()protected VgetValue()booleanisEmpty()Returns true if this collection is empty.Returns a map with the value specified associated to the key specified.Returns a map with the value associated with the key removed if it exists.intsize()Returns the size of the collection.private inttail()Methods inherited from class AbstractTraversable
makeString, makeString, to, toArray, toArray, toIndexedList, toSet, toSortedSet, toStringMethods inherited from interface Iterable
forEach, spliteratorMethods inherited from interface Traversable
makeString, makeString, to, toArray, toArray, toIndexedList, toSet, toSortedSet
-
Field Details
-
key
-
value
-
-
Constructor Details
-
Node
-
-
Method Details
-
size
public int size()Description copied from interface:TraversableReturns the size of the collection.Warning: infinite collections are possible, as are collections that require traversal to calculate the size.
-
size0
-
isEmpty
public boolean isEmpty()Description copied from interface:TraversableReturns true if this collection is empty. -
get
-
apply0
-
tail
-
put
Description copied from interface:MapReturns a map with the value specified associated to the key specified.If value already exists for the key, it will be replaced.
-
remove
-
getKey
-
getValue
-
containsKey
Description copied from interface:MapReturns true if this map contains the specified key.- Specified by:
containsKeyin interfaceMap<K,V> - Overrides:
containsKeyin classListMap<K,V>
-