@Override public IntSet copy() { return new ShiftedBitIntSet(this); }
@Override public int min() { if (isEmpty()) throw new NoSuchElementException(); else return min; }
@Override public int min() { if (isEmpty()) throw new NoSuchElementException(); else return min; }
@Override public IntSet copy() { return new ShiftedBitIntSet(this); }
@Override public int max() { if (isEmpty()) throw new NoSuchElementException(); else return min + super.max(); }
@Override public int max() { if (isEmpty()) throw new NoSuchElementException(); else return min + super.max(); }
@Override public void add(final int value) { if (isEmpty()) { min = value; super.add(0); } else if (value >= min) super.add(value - min); else throw new UnsupportedOperationException("Not implemented"); }
@Override public void add(final int value) { if (isEmpty()) { min = value; super.add(0); } else if (value >= min) super.add(value - min); else throw new UnsupportedOperationException("Not implemented"); }