Class UnmodifiableCharSet
- java.lang.Object
-
- org.eclipse.collections.impl.collection.mutable.primitive.AbstractUnmodifiableCharCollection
-
- org.eclipse.collections.impl.set.mutable.primitive.UnmodifiableCharSet
-
- All Implemented Interfaces:
java.io.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
-
-
Field Summary
Fields Modifier and Type Field Description private static longserialVersionUID
-
Constructor Summary
Constructors Constructor Description UnmodifiableCharSet(MutableCharSet set)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MutableCharSetasSynchronized()MutableCharSetasUnmodifiable()MutableSet<java.lang.Character>boxed()LazyIterable<CharCharPair>cartesianProduct(CharSet set)Returns the set whose members are all possible ordered pairs (a, b) where a is a member ofthisand b is a member ofset.<V> MutableSet<V>collect(CharToObjectFunction<? extends V> function)Returns a new collection with the results of applying the specified function on each element of the source collection.booleanequals(java.lang.Object otherSet)Follows the same general contract asSet.equals(Object).CharSetfreeze()Returns a frozen copy of this set.private MutableCharSetgetMutableCharSet()inthashCode()Follows the same general contract asSet.hashCode().MutableCharSetnewEmpty()Creates a new empty mutable version of the same Set type.static UnmodifiableCharSetof(MutableCharSet set)This method will take a MutableCharSet and wrap it directly in a UnmodifiableCharSet.MutableCharSetreject(CharPredicate predicate)Returns a new CharIterable with all of the elements in the CharIterable that return false for the specified predicate.MutableCharSetselect(CharPredicate predicate)Returns a new CharIterable with all of the elements in the CharIterable that return true for the specified predicate.ImmutableCharSettoImmutable()Returns an immutable copy of this set.UnmodifiableCharSetwith(char element)UnmodifiableCharSetwithAll(CharIterable elements)UnmodifiableCharSetwithout(char element)UnmodifiableCharSetwithoutAll(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, getCharCollection, 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 class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
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
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
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.
-
getMutableCharSet
private MutableCharSet getMutableCharSet()
-
with
public UnmodifiableCharSet with(char element)
- Specified by:
within interfaceMutableCharCollection- Specified by:
within interfaceMutableCharSet- Overrides:
within classAbstractUnmodifiableCharCollection
-
boxed
public MutableSet<java.lang.Character> boxed()
- Specified by:
boxedin interfaceMutableCharSet
-
without
public UnmodifiableCharSet without(char element)
- Specified by:
withoutin interfaceMutableCharCollection- Specified by:
withoutin interfaceMutableCharSet- Overrides:
withoutin classAbstractUnmodifiableCharCollection
-
withAll
public UnmodifiableCharSet withAll(CharIterable elements)
- Specified by:
withAllin interfaceMutableCharCollection- Specified by:
withAllin interfaceMutableCharSet- Overrides:
withAllin classAbstractUnmodifiableCharCollection
-
withoutAll
public UnmodifiableCharSet withoutAll(CharIterable elements)
- Specified by:
withoutAllin interfaceMutableCharCollection- Specified by:
withoutAllin interfaceMutableCharSet- Overrides:
withoutAllin classAbstractUnmodifiableCharCollection
-
select
public MutableCharSet select(CharPredicate predicate)
Description copied from interface:CharIterableReturns a new CharIterable with all of the elements in the CharIterable that return true for the specified predicate.- Specified by:
selectin interfaceCharIterable- Specified by:
selectin interfaceCharSet- Specified by:
selectin interfaceMutableCharCollection- Specified by:
selectin interfaceMutableCharSet- Overrides:
selectin classAbstractUnmodifiableCharCollection
-
reject
public MutableCharSet reject(CharPredicate predicate)
Description copied from interface:CharIterableReturns a new CharIterable with all of the elements in the CharIterable that return false for the specified predicate.- Specified by:
rejectin interfaceCharIterable- Specified by:
rejectin interfaceCharSet- Specified by:
rejectin interfaceMutableCharCollection- Specified by:
rejectin interfaceMutableCharSet- Overrides:
rejectin classAbstractUnmodifiableCharCollection
-
collect
public <V> MutableSet<V> collect(CharToObjectFunction<? extends V> function)
Description copied from interface:CharIterableReturns a new collection with the results of applying the specified function on each element of the source collection. This method is also commonly called transform or map.- Specified by:
collectin interfaceCharIterable- Specified by:
collectin interfaceCharSet- Specified by:
collectin interfaceMutableCharCollection- Specified by:
collectin interfaceMutableCharSet- Overrides:
collectin classAbstractUnmodifiableCharCollection
-
cartesianProduct
public LazyIterable<CharCharPair> cartesianProduct(CharSet set)
Description copied from interface:CharSetReturns the set whose members are all possible ordered pairs (a, b) where a is a member ofthisand b is a member ofset.- Specified by:
cartesianProductin interfaceCharSet
-
equals
public boolean equals(java.lang.Object otherSet)
Description copied from interface:CharSetFollows the same general contract asSet.equals(Object).
-
hashCode
public int hashCode()
Description copied from interface:CharSetFollows the same general contract asSet.hashCode().
-
asUnmodifiable
public MutableCharSet asUnmodifiable()
- Specified by:
asUnmodifiablein interfaceMutableCharCollection- Specified by:
asUnmodifiablein interfaceMutableCharSet- Overrides:
asUnmodifiablein classAbstractUnmodifiableCharCollection
-
asSynchronized
public MutableCharSet asSynchronized()
- Specified by:
asSynchronizedin interfaceMutableCharCollection- Specified by:
asSynchronizedin interfaceMutableCharSet- Overrides:
asSynchronizedin classAbstractUnmodifiableCharCollection
-
freeze
public CharSet freeze()
Description copied from interface:MutableCharSetReturns a frozen copy of this set. A frozen copy is the same thing as an immutable copy without safe-publish guarantees.- Specified by:
freezein interfaceCharSet- Specified by:
freezein interfaceMutableCharSet
-
toImmutable
public ImmutableCharSet toImmutable()
Description copied from interface:MutableCharSetReturns an immutable copy of this set.- Specified by:
toImmutablein interfaceCharSet- Specified by:
toImmutablein interfaceMutableCharCollection- Specified by:
toImmutablein interfaceMutableCharSet- Overrides:
toImmutablein classAbstractUnmodifiableCharCollection
-
newEmpty
public MutableCharSet newEmpty()
Description copied from interface:MutableCharSetCreates a new empty mutable version of the same Set type.- Specified by:
newEmptyin interfaceMutableCharCollection- Specified by:
newEmptyin interfaceMutableCharSet- Since:
- 9.2.
-
-