Class GenericSet<T>

java.lang.Object
toxi.util.datatypes.GenericSet<T>
All Implemented Interfaces:
Iterable<T>

public class GenericSet<T> extends Object implements Iterable<T>
  • Constructor Details

    • GenericSet

      public GenericSet(Collection<T> items)
    • GenericSet

      public GenericSet(T... obj)
  • Method Details

    • add

      public boolean add(T obj)
    • addAll

      public boolean addAll(Collection<T> coll)
    • clear

      public void clear()
    • contains

      public boolean contains(T obj)
    • copy

      public GenericSet<T> copy()
    • getCurrent

      public T getCurrent()
    • getItems

      public ArrayList<T> getItems()
    • iterator

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

      public T pickRandom()
    • pickRandomUnique

      public T pickRandomUnique()
    • seed

      public GenericSet<T> seed(long seed)
    • setRandom

      public void setRandom(Random rnd)
    • size

      public int size()