return element ? ImmutableFalseSet.INSTANCE : ImmutableTrueSet.INSTANCE;
}
public ImmutableBooleanSet newWithAll(BooleanIterable elements)
{
ImmutableBooleanSet result = this;
BooleanIterator booleanIterator = elements.booleanIterator();
while (booleanIterator.hasNext())
{
result = result.newWith(booleanIterator.next());
}
return result;
}