Class LongObjectMap.Entries<V>
- All Implemented Interfaces:
EnhancedCollection<LongObjectMap.Entry<V>>, Iterable<LongObjectMap.Entry<V>>, Collection<LongObjectMap.Entry<V>>, Set<LongObjectMap.Entry<V>>
- Direct Known Subclasses:
LongObjectOrderedMap.OrderedMapEntries
- Enclosing class:
LongObjectMap<V>
public static class LongObjectMap.Entries<V>
extends AbstractSet<LongObjectMap.Entry<V>>
implements EnhancedCollection<LongObjectMap.Entry<V>>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionappendInto(LongObjectMap<V> map) Append the remaining items that this can iterate through into the given LongObjectMap.appendInto(Collection<LongObjectMap.Entry<V>> coll) Append the remaining items that this can iterate through into the given Collection.iterator()Returns an iterator over the elements contained in this collection.intsize()toList()Returns a newObjectListcontaining the remaining items.toString()Methods inherited from class AbstractSet
equals, hashCode, removeAllMethods inherited from class AbstractCollection
add, addAll, clear, contains, containsAll, isEmpty, remove, retainAll, toArray, toArrayMethods inherited from interface Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface EnhancedCollection
add, add, add, addAll, addAll, addAll, addAllIterable, addLegible, addLegible, addVarargs, appendTo, appendTo, containsAll, containsAll, containsAll, containsAllIterable, containsAny, containsAny, containsAny, containsAnyIterable, first, removeAll, removeAll, removeAll, removeAllIterable, removeEach, removeEach, removeEach, removeEachIterable, toString, toString, toString
-
Field Details
-
map
-
-
Constructor Details
-
Entries
-
-
Method Details
-
iterator
Returns an iterator over the elements contained in this collection.- Specified by:
iteratorin interfaceCollection<V>- Specified by:
iteratorin interfaceIterable<V>- Specified by:
iteratorin interfaceSet<V>- Specified by:
iteratorin classAbstractCollection<LongObjectMap.Entry<V>>- Returns:
- an iterator over the elements contained in this collection
-
size
public int size()- Specified by:
sizein interfaceCollection<V>- Specified by:
sizein interfaceSet<V>- Specified by:
sizein classAbstractCollection<LongObjectMap.Entry<V>>
-
toString
- Overrides:
toStringin classAbstractCollection<LongObjectMap.Entry<V>>
-
toList
Returns a newObjectListcontaining the remaining items. Does not change the position of this iterator. -
appendInto
Append the remaining items that this can iterate through into the given Collection. Does not change the position of this iterator.- Parameters:
coll- any modifiable Collection; may have items appended into it- Returns:
- the given collection
-
appendInto
Append the remaining items that this can iterate through into the given LongObjectMap. Does not change the position of this iterator.- Parameters:
map- a modifiable LongObjectMap; may have items appended into it- Returns:
- the given map
-