Package com.esotericsoftware.kryo.util
Class ObjectIntMap.Keys<K>
- java.lang.Object
-
- com.esotericsoftware.kryo.util.ObjectIntMap.Keys<K>
-
- All Implemented Interfaces:
java.lang.Iterable<K>
,java.util.Iterator<K>
- Enclosing class:
- ObjectIntMap<K>
public static class ObjectIntMap.Keys<K> extends java.lang.Object implements java.lang.Iterable<K>, java.util.Iterator<K>
-
-
Constructor Summary
Constructors Constructor Description Keys(ObjectIntMap<K> map)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasNext()
ObjectIntMap.Keys<K>
iterator()
K
next()
java.util.ArrayList<K>
toList()
Returns a new list containing the remaining keys.<T extends java.util.List<K>>
TtoList(T array)
Adds the remaining keys to the list.
-
-
-
Constructor Detail
-
Keys
public Keys(ObjectIntMap<K> map)
-
-
Method Detail
-
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interfacejava.util.Iterator<K>
-
iterator
public ObjectIntMap.Keys<K> iterator()
- Specified by:
iterator
in interfacejava.lang.Iterable<K>
-
toList
public java.util.ArrayList<K> toList()
Returns a new list containing the remaining keys.
-
toList
public <T extends java.util.List<K>> T toList(T array)
Adds the remaining keys to the list.
-
-