Package gw.util

Class IdentitySet<T>

java.lang.Object
gw.util.IdentitySet<T>
All Implemented Interfaces:
Iterable<T>

public class IdentitySet<T> extends Object implements Iterable<T>
  • Field Details

    • _index

      private int _index
    • _set

      private T[] _set
  • Constructor Details

    • IdentitySet

      public IdentitySet(int size)
  • Method Details

    • isEmpty

      public boolean isEmpty()
    • size

      public int size()
    • contains

      public boolean contains(T o)
    • add

      public void add(T o)
    • remove

      public void remove(T o)
    • addAll

      public void addAll(Collection<? extends T> c)
    • clear

      public void clear()
    • iterator

      public Iterator<T> iterator()
      Specified by:
      iterator in interface Iterable<T>
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toArray

      public T[] toArray(T[] array)