Class EntrySet<K,V>
- All Implemented Interfaces:
Iterable<Map.Entry<K,V>>, Collection<Map.Entry<K, V>>, List<Map.Entry<K, V>>, SequencedCollection<Map.Entry<K, V>>, Set<Map.Entry<K, V>>, EntryList<K, V>, Paired<K, V>
- Direct Known Subclasses:
EntrySet.KeyedPrimitives, EntrySet.ObjectObject
public abstract class EntrySet<K,V>
extends AbstractList<Map.Entry<K,V>>
implements EntryList<K,V>, Set<Map.Entry<K,V>>
Allows you to wrap and treat two arrays as a
Collection of key-value pairs. Implements both
List and Set but does not in any way test or enforce uniqueness – that's up to the user of
this class.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static final class(package private) static class(package private) static final class(package private) static final class(package private) static final class(package private) static final class(package private) static final class(package private) static final class(package private) static final class(package private) static final class -
Field Summary
FieldsFields inherited from class AbstractList
modCount -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class AbstractList
add, add, addAll, clear, equals, hashCode, indexOf, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subListMethods inherited from class AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringMethods inherited from interface Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface List
add, add, addAll, addAll, addFirst, addLast, clear, contains, containsAll, equals, getFirst, getLast, hashCode, indexOf, isEmpty, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeFirst, removeLast, replaceAll, retainAll, reversed, set, sort, subList, toArray, toArray
-
Field Details
-
myKeys
-
-
Constructor Details
-
EntrySet
EntrySet(K[] keys)
-
-
Method Details
-
get
-
getKey
-
getPair
-
getValue
-
iterator
-
setValue
-
size
-
spliterator
- Specified by:
spliteratorin interfaceCollection<K>- Specified by:
spliteratorin interfaceIterable<K>- Specified by:
spliteratorin interfaceList<K>- Specified by:
spliteratorin interfaceSet<K>
-