public abstract class AbstractImmutableIntSet extends AbstractIntSet implements ImmutableIntSet
Constructor and Description |
---|
AbstractImmutableIntSet() |
Modifier and Type | Method and Description |
---|---|
IntSet |
freeze()
Returns a frozen copy of this set.
|
ImmutableIntSet |
newWith(int element) |
ImmutableIntSet |
newWithAll(IntIterable elements) |
ImmutableIntSet |
newWithout(int element) |
ImmutableIntSet |
newWithoutAll(IntIterable elements) |
ImmutableIntSet |
toImmutable()
Returns an immutable copy of this set.
|
equals, hashCode
appendString, appendString, asLazy, average, containsAll, containsAll, isEmpty, makeString, makeString, makeString, maxIfEmpty, median, minIfEmpty, notEmpty, toBag, toList, toSet, toSortedArray, toSortedList, toString
collect, reject, select
allSatisfy, anySatisfy, asLazy, average, contains, containsAll, containsAll, count, detectIfNone, each, forEach, injectInto, intIterator, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, sum, toArray, toBag, toList, toSet, toSortedArray, toSortedList
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
public ImmutableIntSet newWith(int element)
newWith
in interface ImmutableIntCollection
newWith
in interface ImmutableIntSet
public ImmutableIntSet newWithout(int element)
newWithout
in interface ImmutableIntCollection
newWithout
in interface ImmutableIntSet
public ImmutableIntSet newWithAll(IntIterable elements)
newWithAll
in interface ImmutableIntCollection
newWithAll
in interface ImmutableIntSet
public ImmutableIntSet newWithoutAll(IntIterable elements)
newWithoutAll
in interface ImmutableIntCollection
newWithoutAll
in interface ImmutableIntSet
public IntSet freeze()
IntSet
public ImmutableIntSet toImmutable()
IntSet
toImmutable
in interface IntSet
Copyright © 2004–2016. All rights reserved.