Class LongIntMap.Entries
- All Implemented Interfaces:
EnhancedCollection<LongIntMap.Entry>, Iterable<LongIntMap.Entry>, Collection<LongIntMap.Entry>, Set<LongIntMap.Entry>
- Direct Known Subclasses:
LongIntOrderedMap.OrderedMapEntries
- Enclosing class:
LongIntMap
public static class LongIntMap.Entries
extends AbstractSet<LongIntMap.Entry>
implements EnhancedCollection<LongIntMap.Entry>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionappendInto(LongIntMap map) Append the remaining items that this can iterate through into the given LongIntMap.appendInto(Collection<LongIntMap.Entry> 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<LongIntMap.Entry>- Specified by:
iteratorin interfaceIterable<LongIntMap.Entry>- Specified by:
iteratorin interfaceSet<LongIntMap.Entry>- Specified by:
iteratorin classAbstractCollection<LongIntMap.Entry>- Returns:
- an iterator over the elements contained in this collection
-
size
public int size()- Specified by:
sizein interfaceCollection<LongIntMap.Entry>- Specified by:
sizein interfaceSet<LongIntMap.Entry>- Specified by:
sizein classAbstractCollection<LongIntMap.Entry>
-
toString
- Overrides:
toStringin classAbstractCollection<LongIntMap.Entry>
-
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 LongIntMap. Does not change the position of this iterator.- Parameters:
map- a modifiable LongIntMap; may have items appended into it- Returns:
- the given map
-