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 booleanadd(Map.Entry<K,V> k)Unsupported.booleanaddAll(Collection<? extends Map.Entry<K,V>> c)Unsupported.voidclear()Comparator<? super Map.Entry<K,V>>comparator()booleancontains(Object o)booleancontainsAll(Collection<?> c)Checks whether this collection contains all elements from the given collection.booleanequals(Object o)Map.Entry<K,V>first()SortedSet<Map.Entry<K,V>>headSet(Map.Entry<K,V> toElement)booleanisEmpty()squidpony.squidmath.OrderedMap.EntryIteratoriterator()Map.Entry<K,V>last()booleanremove(Object o)booleanremoveAll(Collection<?> c)Remove from this collection all elements in the given collection.booleanretainAll(Collection<?> c)Retains in this collection only elements from the given collection.intsize()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)StringtoString()
-
Constructor Details
-
MapEntrySet
public MapEntrySet()
-
-
Method Details
-
iterator
-
comparator
- Specified by:
comparatorin 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:
containsAllin interfaceCollection<Map.Entry<K,V>>- Specified by:
containsAllin interfaceSet<Map.Entry<K,V>>- Parameters:
c- a collection.- Returns:
trueif 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
-