@ThreadSafe public abstract class AbstractUnmodifiableFloatCollection extends Object implements MutableFloatCollection, Serializable
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(float newItem) |
boolean |
addAll(float... source) |
boolean |
addAll(FloatIterable source) |
boolean |
allSatisfy(FloatPredicate predicate) |
boolean |
anySatisfy(FloatPredicate predicate) |
void |
appendString(Appendable appendable)
Prints a string representation of this collection onto the given
Appendable. |
void |
appendString(Appendable appendable,
String separator)
Prints a string representation of this collection onto the given
Appendable. |
void |
appendString(Appendable appendable,
String start,
String separator,
String end)
Prints a string representation of this collection onto the given
Appendable. |
LazyFloatIterable |
asLazy() |
MutableFloatCollection |
asSynchronized() |
MutableFloatCollection |
asUnmodifiable() |
double |
average() |
void |
clear() |
<V> MutableCollection<V> |
collect(FloatToObjectFunction<? extends V> function) |
boolean |
contains(float value) |
boolean |
containsAll(float... source) |
boolean |
containsAll(FloatIterable source) |
int |
count(FloatPredicate predicate) |
float |
detectIfNone(FloatPredicate predicate,
float ifNone) |
void |
each(FloatProcedure procedure) |
MutableFloatIterator |
floatIterator() |
void |
forEach(FloatProcedure procedure) |
<T> T |
injectInto(T injectedValue,
ObjectFloatToObjectFunction<? super T,? extends T> function) |
boolean |
isEmpty()
Returns true if this iterable has zero items.
|
String |
makeString()
Returns a string representation of this collection by delegating to
PrimitiveIterable.makeString(String) and defaulting
the separator parameter to the characters ", " (comma and space). |
String |
makeString(String separator)
Returns a string representation of this collection by delegating to
PrimitiveIterable.makeString(String, String, String)
and defaulting the start and end parameters to "" (the empty String). |
String |
makeString(String start,
String separator,
String end)
Returns a string representation of this collection.
|
float |
max() |
float |
maxIfEmpty(float defaultValue) |
double |
median() |
float |
min() |
float |
minIfEmpty(float defaultValue) |
boolean |
noneSatisfy(FloatPredicate predicate) |
boolean |
notEmpty()
The English equivalent of !this.isEmpty()
|
MutableFloatCollection |
reject(FloatPredicate predicate) |
boolean |
remove(float value) |
boolean |
removeAll(float... source) |
boolean |
removeAll(FloatIterable source) |
boolean |
retainAll(float... source) |
boolean |
retainAll(FloatIterable source) |
MutableFloatCollection |
select(FloatPredicate predicate) |
int |
size()
Returns the number of items in this iterable.
|
double |
sum() |
float[] |
toArray() |
MutableFloatBag |
toBag() |
ImmutableFloatCollection |
toImmutable() |
MutableFloatList |
toList() |
MutableFloatSet |
toSet() |
float[] |
toSortedArray() |
MutableFloatList |
toSortedList() |
String |
toString()
Returns a string representation of this PrimitiveIterable.
|
MutableFloatCollection |
with(float element) |
MutableFloatCollection |
withAll(FloatIterable elements) |
MutableFloatCollection |
without(float element) |
MutableFloatCollection |
withoutAll(FloatIterable elements) |
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitsummaryStatisticspublic int size()
PrimitiveIterablesize in interface PrimitiveIterablepublic boolean isEmpty()
PrimitiveIterableisEmpty in interface PrimitiveIterablepublic boolean notEmpty()
PrimitiveIterablenotEmpty in interface PrimitiveIterablepublic void clear()
clear in interface MutableFloatCollectionpublic boolean contains(float value)
contains in interface FloatIterablepublic boolean containsAll(float... source)
containsAll in interface FloatIterablepublic boolean containsAll(FloatIterable source)
containsAll in interface FloatIterablepublic boolean add(float newItem)
add in interface MutableFloatCollectionpublic boolean addAll(float... source)
addAll in interface MutableFloatCollectionpublic boolean addAll(FloatIterable source)
addAll in interface MutableFloatCollectionpublic boolean remove(float value)
remove in interface MutableFloatCollectionpublic boolean removeAll(FloatIterable source)
removeAll in interface MutableFloatCollectionpublic boolean removeAll(float... source)
removeAll in interface MutableFloatCollectionpublic boolean retainAll(FloatIterable source)
retainAll in interface MutableFloatCollectionCollection.retainAll(Collection)public boolean retainAll(float... source)
retainAll in interface MutableFloatCollectionCollection.retainAll(Collection)public MutableFloatIterator floatIterator()
floatIterator in interface MutableFloatCollectionfloatIterator in interface FloatIterablepublic void forEach(FloatProcedure procedure)
forEach in interface FloatIterablepublic void each(FloatProcedure procedure)
each in interface FloatIterablepublic int count(FloatPredicate predicate)
count in interface FloatIterablepublic boolean anySatisfy(FloatPredicate predicate)
anySatisfy in interface FloatIterablepublic boolean allSatisfy(FloatPredicate predicate)
allSatisfy in interface FloatIterablepublic boolean noneSatisfy(FloatPredicate predicate)
noneSatisfy in interface FloatIterablepublic MutableFloatCollection select(FloatPredicate predicate)
select in interface MutableFloatCollectionselect in interface FloatIterablepublic MutableFloatCollection reject(FloatPredicate predicate)
reject in interface MutableFloatCollectionreject in interface FloatIterablepublic <V> MutableCollection<V> collect(FloatToObjectFunction<? extends V> function)
collect in interface MutableFloatCollectioncollect in interface FloatIterablepublic MutableFloatCollection with(float element)
with in interface MutableFloatCollectionpublic MutableFloatCollection without(float element)
without in interface MutableFloatCollectionpublic MutableFloatCollection withAll(FloatIterable elements)
withAll in interface MutableFloatCollectionpublic MutableFloatCollection withoutAll(FloatIterable elements)
withoutAll in interface MutableFloatCollectionpublic MutableFloatCollection asUnmodifiable()
asUnmodifiable in interface MutableFloatCollectionpublic MutableFloatCollection asSynchronized()
asSynchronized in interface MutableFloatCollectionpublic ImmutableFloatCollection toImmutable()
toImmutable in interface MutableFloatCollectionpublic LazyFloatIterable asLazy()
asLazy in interface FloatIterablepublic float detectIfNone(FloatPredicate predicate, float ifNone)
detectIfNone in interface FloatIterablepublic double sum()
sum in interface FloatIterablepublic float max()
max in interface FloatIterablepublic float min()
min in interface FloatIterablepublic float minIfEmpty(float defaultValue)
minIfEmpty in interface FloatIterablepublic float maxIfEmpty(float defaultValue)
maxIfEmpty in interface FloatIterablepublic double average()
average in interface FloatIterablepublic double median()
median in interface FloatIterablepublic MutableFloatList toSortedList()
toSortedList in interface FloatIterablepublic float[] toSortedArray()
toSortedArray in interface FloatIterablepublic float[] toArray()
toArray in interface FloatIterablepublic String toString()
PrimitiveIterabletoString in interface PrimitiveIterabletoString in class Objectpublic String makeString()
PrimitiveIterablePrimitiveIterable.makeString(String) and defaulting
the separator parameter to the characters ", " (comma and space).makeString in interface PrimitiveIterablepublic String makeString(String separator)
PrimitiveIterablePrimitiveIterable.makeString(String, String, String)
and defaulting the start and end parameters to "" (the empty String).makeString in interface PrimitiveIterablepublic String makeString(String start, String separator, String end)
PrimitiveIterablemakeString in interface PrimitiveIterablepublic void appendString(Appendable appendable)
PrimitiveIterableAppendable. Prints the string returned
by PrimitiveIterable.makeString().appendString in interface PrimitiveIterablepublic void appendString(Appendable appendable, String separator)
PrimitiveIterableAppendable. Prints the string returned
by PrimitiveIterable.makeString(String).appendString in interface PrimitiveIterablepublic void appendString(Appendable appendable, String start, String separator, String end)
PrimitiveIterableAppendable. Prints the string returned
by PrimitiveIterable.makeString(String, String, String).appendString in interface PrimitiveIterablepublic MutableFloatList toList()
toList in interface FloatIterablepublic MutableFloatSet toSet()
toSet in interface FloatIterablepublic MutableFloatBag toBag()
toBag in interface FloatIterablepublic <T> T injectInto(T injectedValue,
ObjectFloatToObjectFunction<? super T,? extends T> function)
injectInto in interface FloatIterableCopyright © 2004–2016. All rights reserved.