Package squidpony.squidmath
Class OrderedMap.MapEntrySet
java.lang.Object
squidpony.squidmath.OrderedMap.MapEntrySet
- All Implemented Interfaces:
Serializable
,Cloneable
,Iterable<Map.Entry<K,V>>
,Collection<Map.Entry<K,V>>
,Set<Map.Entry<K,V>>
,SortedSet<Map.Entry<K,V>>
- Enclosing class:
- OrderedMap<K,V>
public final class OrderedMap.MapEntrySet extends Object implements Cloneable, SortedSet<Map.Entry<K,V>>, Set<Map.Entry<K,V>>, Collection<Map.Entry<K,V>>, Serializable
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description MapEntrySet()
-
Method Summary
Modifier and Type Method Description boolean
add(Map.Entry<K,V> k)
Unsupported.boolean
addAll(Collection<? extends Map.Entry<K,V>> c)
Unsupported.void
clear()
Comparator<? super Map.Entry<K,V>>
comparator()
boolean
contains(Object o)
boolean
containsAll(Collection<?> c)
Checks whether this collection contains all elements from the given collection.boolean
equals(Object o)
Map.Entry<K,V>
first()
SortedSet<Map.Entry<K,V>>
headSet(Map.Entry<K,V> toElement)
boolean
isEmpty()
squidpony.squidmath.OrderedMap.EntryIterator
iterator()
Map.Entry<K,V>
last()
boolean
remove(Object o)
boolean
removeAll(Collection<?> c)
Remove from this collection all elements in the given collection.boolean
retainAll(Collection<?> c)
Retains in this collection only elements from the given collection.int
size()
SortedSet<Map.Entry<K,V>>
subSet(Map.Entry<K,V> fromElement, Map.Entry<K,V> toElement)
SortedSet<Map.Entry<K,V>>
tailSet(Map.Entry<K,V> fromElement)
Object[]
toArray()
<T> T[]
toArray(T[] a)
String
toString()
-
Constructor Details
-
MapEntrySet
public MapEntrySet()
-
-
Method Details
-
iterator
-
comparator
- Specified by:
comparator
in interfaceSortedSet<Map.Entry<K,V>>
-
subSet
-
headSet
-
tailSet
-
first
-
last
-
contains
-
remove
-
size
-
clear
-
equals
-
toArray
-
toArray
-
addAll
Unsupported. -
add
Unsupported. -
containsAll
Checks whether this collection contains all elements from the given collection.- Specified by:
containsAll
in interfaceCollection<Map.Entry<K,V>>
- Specified by:
containsAll
in interfaceSet<Map.Entry<K,V>>
- Parameters:
c
- a collection.- Returns:
true
if this collection contains all elements of the argument.
-
retainAll
Retains in this collection only elements from the given collection. -
removeAll
Remove from this collection all elements in the given collection. If the collection is an instance of this class, it uses faster iterators. -
isEmpty
-
toString
-