Class IntSet

java.lang.Object
de.schmizzolin.yogi.IntSet
All Implemented Interfaces:
Iterable<Integer>

public class IntSet extends Object implements Iterable<Integer>
TODO: not a set yet
  • Constructor Details

    • IntSet

      public IntSet()
    • IntSet

      public IntSet(IntSet orig)
    • IntSet

      public IntSet(Collection<Integer> collection)
  • Method Details

    • parseArg

      public static IntSet parseArg(String arg)
    • parse

      public static IntSet parse(List<String> strings)
    • addAll

      public void addAll(Collection<Integer> collection)
    • add

      public void add(int i)
    • clear

      public void clear()
    • contains

      public boolean contains(int i)
    • size

      public int size()
    • isEmpty

      public boolean isEmpty()
    • toString

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

      public static IntSet union(IntSet left, IntSet right)
    • iterator

      public Iterator<Integer> iterator()
      Specified by:
      iterator in interface Iterable<Integer>
    • next

      public int next(IntSet done)
    • retain

      public void retain(int count)
    • retain

      public void retain(IntSet set)
    • createRetained

      public IntSet createRetained(IntSet set)
    • removeAll

      public void removeAll(IntSet set)
    • remove

      public boolean remove(int remove)