Class AbstractUnmodifiableCharCollection
- java.lang.Object
-
- org.eclipse.collections.impl.collection.mutable.primitive.AbstractUnmodifiableCharCollection
-
- All Implemented Interfaces:
Serializable,CharIterable,MutableCharCollection,PrimitiveIterable
- Direct Known Subclasses:
UnmodifiableCharBag,UnmodifiableCharCollection,UnmodifiableCharList,UnmodifiableCharSet
public abstract class AbstractUnmodifiableCharCollection extends Object implements MutableCharCollection, Serializable
This file was automatically generated from template file abstractUnmodifiablePrimitiveCollection.stg.- Since:
- 3.1.
- See Also:
- Serialized Form
-
-
Method Summary
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.eclipse.collections.api.CharIterable
averageIfEmpty, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, flatCollect, forEach, injectIntoBoolean, injectIntoByte, injectIntoChar, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, injectIntoShort, medianIfEmpty, reject, select, summaryStatistics, toSortedList, toSortedListBy, toSortedListBy
-
Methods inherited from interface org.eclipse.collections.api.collection.primitive.MutableCharCollection
newEmpty, tap
-
-
-
-
Method Detail
-
size
public int size()
- Specified by:
sizein interfacePrimitiveIterable
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfacePrimitiveIterable
-
notEmpty
public boolean notEmpty()
- Specified by:
notEmptyin interfacePrimitiveIterable
-
clear
public void clear()
- Specified by:
clearin interfaceMutableCharCollection
-
contains
public boolean contains(char value)
- Specified by:
containsin interfaceCharIterable
-
containsAll
public boolean containsAll(char... source)
- Specified by:
containsAllin interfaceCharIterable
-
containsAll
public boolean containsAll(CharIterable source)
- Specified by:
containsAllin interfaceCharIterable
-
containsAny
public boolean containsAny(char... source)
- Specified by:
containsAnyin interfaceCharIterable
-
containsAny
public boolean containsAny(CharIterable source)
- Specified by:
containsAnyin interfaceCharIterable
-
containsNone
public boolean containsNone(char... source)
- Specified by:
containsNonein interfaceCharIterable
-
containsNone
public boolean containsNone(CharIterable source)
- Specified by:
containsNonein interfaceCharIterable
-
add
public boolean add(char newItem)
- Specified by:
addin interfaceMutableCharCollection
-
addAll
public boolean addAll(char... source)
- Specified by:
addAllin interfaceMutableCharCollection
-
addAll
public boolean addAll(CharIterable source)
- Specified by:
addAllin interfaceMutableCharCollection
-
remove
public boolean remove(char value)
- Specified by:
removein interfaceMutableCharCollection
-
removeIf
public boolean removeIf(CharPredicate predicate)
- Specified by:
removeIfin interfaceMutableCharCollection- Since:
- 9.1
-
removeAll
public boolean removeAll(CharIterable source)
- Specified by:
removeAllin interfaceMutableCharCollection
-
removeAll
public boolean removeAll(char... source)
- Specified by:
removeAllin interfaceMutableCharCollection
-
retainAll
public boolean retainAll(CharIterable source)
- Specified by:
retainAllin interfaceMutableCharCollection
-
retainAll
public boolean retainAll(char... source)
- Specified by:
retainAllin interfaceMutableCharCollection
-
charIterator
public MutableCharIterator charIterator()
- Specified by:
charIteratorin interfaceCharIterable- Specified by:
charIteratorin interfaceMutableCharCollection
-
each
public void each(CharProcedure procedure)
- Specified by:
eachin interfaceCharIterable- Since:
- 7.0.
-
count
public int count(CharPredicate predicate)
- Specified by:
countin interfaceCharIterable
-
anySatisfy
public boolean anySatisfy(CharPredicate predicate)
- Specified by:
anySatisfyin interfaceCharIterable
-
allSatisfy
public boolean allSatisfy(CharPredicate predicate)
- Specified by:
allSatisfyin interfaceCharIterable
-
noneSatisfy
public boolean noneSatisfy(CharPredicate predicate)
- Specified by:
noneSatisfyin interfaceCharIterable
-
select
public MutableCharCollection select(CharPredicate predicate)
- Specified by:
selectin interfaceCharIterable- Specified by:
selectin interfaceMutableCharCollection
-
reject
public MutableCharCollection reject(CharPredicate predicate)
- Specified by:
rejectin interfaceCharIterable- Specified by:
rejectin interfaceMutableCharCollection
-
collect
public <V> MutableCollection<V> collect(CharToObjectFunction<? extends V> function)
- Specified by:
collectin interfaceCharIterable- Specified by:
collectin interfaceMutableCharCollection
-
with
public MutableCharCollection with(char element)
- Specified by:
within interfaceMutableCharCollection
-
without
public MutableCharCollection without(char element)
- Specified by:
withoutin interfaceMutableCharCollection
-
withAll
public MutableCharCollection withAll(CharIterable elements)
- Specified by:
withAllin interfaceMutableCharCollection
-
withoutAll
public MutableCharCollection withoutAll(CharIterable elements)
- Specified by:
withoutAllin interfaceMutableCharCollection
-
asUnmodifiable
public MutableCharCollection asUnmodifiable()
- Specified by:
asUnmodifiablein interfaceMutableCharCollection
-
asSynchronized
public MutableCharCollection asSynchronized()
- Specified by:
asSynchronizedin interfaceMutableCharCollection
-
toImmutable
public ImmutableCharCollection toImmutable()
- Specified by:
toImmutablein interfaceMutableCharCollection
-
asLazy
public LazyCharIterable asLazy()
- Specified by:
asLazyin interfaceCharIterable
-
detectIfNone
public char detectIfNone(CharPredicate predicate, char ifNone)
- Specified by:
detectIfNonein interfaceCharIterable
-
sum
public long sum()
- Specified by:
sumin interfaceCharIterable
-
max
public char max()
- Specified by:
maxin interfaceCharIterable
-
min
public char min()
- Specified by:
minin interfaceCharIterable
-
minIfEmpty
public char minIfEmpty(char defaultValue)
- Specified by:
minIfEmptyin interfaceCharIterable
-
maxIfEmpty
public char maxIfEmpty(char defaultValue)
- Specified by:
maxIfEmptyin interfaceCharIterable
-
average
public double average()
- Specified by:
averagein interfaceCharIterable
-
median
public double median()
- Specified by:
medianin interfaceCharIterable
-
toSortedList
public MutableCharList toSortedList()
- Specified by:
toSortedListin interfaceCharIterable
-
toSortedArray
public char[] toSortedArray()
- Specified by:
toSortedArrayin interfaceCharIterable
-
toArray
public char[] toArray()
- Specified by:
toArrayin interfaceCharIterable
-
toArray
public char[] toArray(char[] target)
- Specified by:
toArrayin interfaceCharIterable
-
toString
public String toString()
- Specified by:
toStringin interfacePrimitiveIterable- Overrides:
toStringin classObject
-
makeString
public String makeString()
- Specified by:
makeStringin interfacePrimitiveIterable
-
makeString
public String makeString(String separator)
- Specified by:
makeStringin interfacePrimitiveIterable
-
makeString
public String makeString(String start, String separator, String end)
- Specified by:
makeStringin interfacePrimitiveIterable
-
appendString
public void appendString(Appendable appendable)
- Specified by:
appendStringin interfacePrimitiveIterable
-
appendString
public void appendString(Appendable appendable, String separator)
- Specified by:
appendStringin interfacePrimitiveIterable
-
appendString
public void appendString(Appendable appendable, String start, String separator, String end)
- Specified by:
appendStringin interfacePrimitiveIterable
-
toList
public MutableCharList toList()
- Specified by:
toListin interfaceCharIterable
-
toSet
public MutableCharSet toSet()
- Specified by:
toSetin interfaceCharIterable
-
toBag
public MutableCharBag toBag()
- Specified by:
toBagin interfaceCharIterable
-
injectInto
public <T> T injectInto(T injectedValue, ObjectCharToObjectFunction<? super T,? extends T> function)- Specified by:
injectIntoin interfaceCharIterable
-
reduce
public long reduce(LongCharToLongFunction accumulator)
- Specified by:
reducein interfaceCharIterable
-
reduceIfEmpty
public long reduceIfEmpty(LongCharToLongFunction accumulator, long defaultValue)
- Specified by:
reduceIfEmptyin interfaceCharIterable
-
chunk
public RichIterable<CharIterable> chunk(int size)
- Specified by:
chunkin interfaceCharIterable
-
-