Package org.ojalgo.type.keyvalue
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 java.util.AbstractList
modCount
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.util.AbstractList
add, add, addAll, clear, equals, hashCode, indexOf, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods inherited from interface java.util.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
public final int size() -
spliterator
- Specified by:
spliterator
in interfaceCollection<K>
- Specified by:
spliterator
in interfaceIterable<K>
- Specified by:
spliterator
in interfaceList<K>
- Specified by:
spliterator
in interfaceSet<K>
-