com.esotericsoftware.kryo.util
Class IdentityMap.Keys<K>

java.lang.Object
  extended by com.esotericsoftware.kryo.util.IdentityMap.Keys<K>
All Implemented Interfaces:
java.lang.Iterable<K>, java.util.Iterator<K>
Enclosing class:
IdentityMap<K,V>

public static class IdentityMap.Keys<K>
extends java.lang.Object
implements java.lang.Iterable<K>, java.util.Iterator<K>


Constructor Summary
IdentityMap.Keys(IdentityMap<K,?> map)
           
 
Method Summary
 boolean hasNext()
           
 java.util.Iterator<K> iterator()
           
 K next()
           
 java.util.ArrayList<K> toArray()
          Returns a new array containing the remaining keys.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Iterator
remove
 

Constructor Detail

IdentityMap.Keys

public IdentityMap.Keys(IdentityMap<K,?> map)
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface java.util.Iterator<K>

next

public K next()
Specified by:
next in interface java.util.Iterator<K>

iterator

public java.util.Iterator<K> iterator()
Specified by:
iterator in interface java.lang.Iterable<K>

toArray

public java.util.ArrayList<K> toArray()
Returns a new array containing the remaining keys.