Class UnmodifiableCharSet
- java.lang.Object
-
- org.eclipse.collections.impl.collection.mutable.primitive.AbstractUnmodifiableCharCollection
-
- org.eclipse.collections.impl.set.mutable.primitive.UnmodifiableCharSet
-
- All Implemented Interfaces:
Serializable
,CharIterable
,MutableCharCollection
,PrimitiveIterable
,CharSet
,MutableCharSet
public class UnmodifiableCharSet extends AbstractUnmodifiableCharCollection implements MutableCharSet
This file was automatically generated from template file unmodifiablePrimitiveSet.stg.- Since:
- 3.1.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UnmodifiableCharSet(MutableCharSet set)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MutableCharSet
asSynchronized()
MutableCharSet
asUnmodifiable()
MutableSet<Character>
boxed()
LazyIterable<CharCharPair>
cartesianProduct(CharSet set)
<V> MutableSet<V>
collect(CharToObjectFunction<? extends V> function)
boolean
equals(Object otherSet)
CharSet
freeze()
int
hashCode()
MutableCharSet
newEmpty()
static UnmodifiableCharSet
of(MutableCharSet set)
This method will take a MutableCharSet and wrap it directly in a UnmodifiableCharSet.MutableCharSet
reject(CharPredicate predicate)
MutableCharSet
select(CharPredicate predicate)
ImmutableCharSet
toImmutable()
UnmodifiableCharSet
with(char element)
UnmodifiableCharSet
withAll(CharIterable elements)
UnmodifiableCharSet
without(char element)
UnmodifiableCharSet
withoutAll(CharIterable elements)
-
Methods inherited from class org.eclipse.collections.impl.collection.mutable.primitive.AbstractUnmodifiableCharCollection
add, addAll, addAll, allSatisfy, anySatisfy, appendString, appendString, appendString, asLazy, average, charIterator, chunk, clear, contains, containsAll, containsAll, containsAny, containsAny, containsNone, containsNone, count, detectIfNone, each, injectInto, isEmpty, makeString, makeString, makeString, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, notEmpty, reduce, reduceIfEmpty, remove, removeAll, removeAll, removeIf, retainAll, retainAll, size, sum, toArray, toArray, toBag, toList, toSet, toSortedArray, toSortedList, toString
-
Methods inherited from interface org.eclipse.collections.api.CharIterable
allSatisfy, anySatisfy, asLazy, average, averageIfEmpty, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, containsAny, containsAny, containsNone, containsNone, count, detectIfNone, each, flatCollect, forEach, injectInto, injectIntoBoolean, injectIntoByte, injectIntoChar, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, injectIntoShort, max, maxIfEmpty, median, medianIfEmpty, min, minIfEmpty, noneSatisfy, reduce, reduceIfEmpty, reject, select, sum, summaryStatistics, toArray, toArray, toBag, toList, toSet, toSortedArray, toSortedList, toSortedList, toSortedListBy, toSortedListBy
-
Methods inherited from interface org.eclipse.collections.api.set.primitive.CharSet
isProperSubsetOf, isSubsetOf
-
Methods inherited from interface org.eclipse.collections.api.collection.primitive.MutableCharCollection
add, addAll, addAll, charIterator, clear, remove, removeAll, removeAll, removeIf, retainAll, retainAll
-
Methods inherited from interface org.eclipse.collections.api.set.primitive.MutableCharSet
difference, intersect, symmetricDifference, tap, union
-
Methods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
-
-
-
-
Constructor Detail
-
UnmodifiableCharSet
public UnmodifiableCharSet(MutableCharSet set)
-
-
Method Detail
-
of
public static UnmodifiableCharSet of(MutableCharSet set)
This method will take a MutableCharSet and wrap it directly in a UnmodifiableCharSet.
-
with
public UnmodifiableCharSet with(char element)
- Specified by:
with
in interfaceMutableCharCollection
- Specified by:
with
in interfaceMutableCharSet
- Overrides:
with
in classAbstractUnmodifiableCharCollection
-
boxed
public MutableSet<Character> boxed()
- Specified by:
boxed
in interfaceMutableCharSet
-
without
public UnmodifiableCharSet without(char element)
- Specified by:
without
in interfaceMutableCharCollection
- Specified by:
without
in interfaceMutableCharSet
- Overrides:
without
in classAbstractUnmodifiableCharCollection
-
withAll
public UnmodifiableCharSet withAll(CharIterable elements)
- Specified by:
withAll
in interfaceMutableCharCollection
- Specified by:
withAll
in interfaceMutableCharSet
- Overrides:
withAll
in classAbstractUnmodifiableCharCollection
-
withoutAll
public UnmodifiableCharSet withoutAll(CharIterable elements)
- Specified by:
withoutAll
in interfaceMutableCharCollection
- Specified by:
withoutAll
in interfaceMutableCharSet
- Overrides:
withoutAll
in classAbstractUnmodifiableCharCollection
-
select
public MutableCharSet select(CharPredicate predicate)
- Specified by:
select
in interfaceCharIterable
- Specified by:
select
in interfaceCharSet
- Specified by:
select
in interfaceMutableCharCollection
- Specified by:
select
in interfaceMutableCharSet
- Overrides:
select
in classAbstractUnmodifiableCharCollection
-
reject
public MutableCharSet reject(CharPredicate predicate)
- Specified by:
reject
in interfaceCharIterable
- Specified by:
reject
in interfaceCharSet
- Specified by:
reject
in interfaceMutableCharCollection
- Specified by:
reject
in interfaceMutableCharSet
- Overrides:
reject
in classAbstractUnmodifiableCharCollection
-
collect
public <V> MutableSet<V> collect(CharToObjectFunction<? extends V> function)
- Specified by:
collect
in interfaceCharIterable
- Specified by:
collect
in interfaceCharSet
- Specified by:
collect
in interfaceMutableCharCollection
- Specified by:
collect
in interfaceMutableCharSet
- Overrides:
collect
in classAbstractUnmodifiableCharCollection
-
cartesianProduct
public LazyIterable<CharCharPair> cartesianProduct(CharSet set)
- Specified by:
cartesianProduct
in interfaceCharSet
-
equals
public boolean equals(Object otherSet)
-
hashCode
public int hashCode()
-
asUnmodifiable
public MutableCharSet asUnmodifiable()
- Specified by:
asUnmodifiable
in interfaceMutableCharCollection
- Specified by:
asUnmodifiable
in interfaceMutableCharSet
- Overrides:
asUnmodifiable
in classAbstractUnmodifiableCharCollection
-
asSynchronized
public MutableCharSet asSynchronized()
- Specified by:
asSynchronized
in interfaceMutableCharCollection
- Specified by:
asSynchronized
in interfaceMutableCharSet
- Overrides:
asSynchronized
in classAbstractUnmodifiableCharCollection
-
freeze
public CharSet freeze()
- Specified by:
freeze
in interfaceCharSet
- Specified by:
freeze
in interfaceMutableCharSet
-
toImmutable
public ImmutableCharSet toImmutable()
- Specified by:
toImmutable
in interfaceCharSet
- Specified by:
toImmutable
in interfaceMutableCharCollection
- Specified by:
toImmutable
in interfaceMutableCharSet
- Overrides:
toImmutable
in classAbstractUnmodifiableCharCollection
-
newEmpty
public MutableCharSet newEmpty()
- Specified by:
newEmpty
in interfaceMutableCharCollection
- Specified by:
newEmpty
in interfaceMutableCharSet
- Since:
- 9.2.
-
-