org.apache.clerezza.rdf.core.impl.graphmatching.collections
Class IntHashSet

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractSet<E>
          extended by java.util.HashSet<Integer>
              extended by org.apache.clerezza.rdf.core.impl.graphmatching.collections.IntHashSet
All Implemented Interfaces:
Serializable, Cloneable, Iterable<Integer>, Collection<Integer>, Set<Integer>, IntSet

public class IntHashSet
extends HashSet<Integer>
implements IntSet

This is currently just a placeholder implementation based onm HashSet an efficient implementation is to store the primitives directly.

Author:
reto
See Also:
Serialized Form

Constructor Summary
IntHashSet()
           
 
Method Summary
 void add(int i)
           
 IntIterator intIterator()
           
 
Methods inherited from class java.util.HashSet
add, clear, clone, contains, isEmpty, iterator, remove, size
 
Methods inherited from class java.util.AbstractSet
equals, hashCode, removeAll
 
Methods inherited from class java.util.AbstractCollection
addAll, containsAll, retainAll, toArray, toArray, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Set
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray
 

Constructor Detail

IntHashSet

public IntHashSet()
Method Detail

intIterator

public IntIterator intIterator()
Specified by:
intIterator in interface IntSet
Returns:
an iterator over the primitive int

add

public void add(int i)
Specified by:
add in interface IntSet


Copyright © 2012 The Apache Software Foundation. All Rights Reserved.