| Modifier and Type | Field and Description |
|---|---|
| private final DoubleIterable |
| Access | Constructor and Description |
|---|---|
| public |
| delegate | back to summary |
|---|---|
| private final DoubleIterable delegate | |
| LazyDoubleIterableAdapter | back to summary |
|---|---|
| public LazyDoubleIterableAdapter(DoubleIterable delegate) | |
| allSatisfy | back to summary |
|---|---|
| public boolean allSatisfy(DoublePredicate predicate) Overrides org. Implements org. Doc from org. Returns true if all of the elements in the DoubleIterable return true for the specified predicate, otherwise returns false.
| |
| anySatisfy | back to summary |
|---|---|
| public boolean anySatisfy(DoublePredicate predicate) Overrides org. Implements org. Doc from org. Returns true if any of the elements in the DoubleIterable return true for the specified predicate, otherwise returns false.
| |
| appendString | back to summary |
|---|---|
| public void appendString(Appendable appendable) Overrides org. Overrides default org. Doc from org. Prints a string representation of this collection onto the given
| |
| appendString | back to summary |
|---|---|
| public void appendString(Appendable appendable, String separator) Overrides org. Overrides default org. Doc from org. Prints a string representation of this collection onto the given
| |
| appendString | back to summary |
|---|---|
| public void appendString(Appendable appendable, String start, String separator, String end) Overrides org. Implements org. Doc from org. Prints a string representation of this collection onto the given
| |
| average | back to summary |
|---|---|
| public double average() Overrides org. Implements org.
| |
| contains | back to summary |
|---|---|
| public boolean contains(double value) Overrides org. Implements org. Doc from org. Returns true if the value is contained in the DoubleIterable, and false if it is not.
| |
| containsAll | back to summary |
|---|---|
| public boolean containsAll(double... source) Overrides org. Overrides default org. Doc from org. Returns true if all of the values specified in the source array are contained in the DoubleIterable, and false if they are not.
| |
| containsAll | back to summary |
|---|---|
| public boolean containsAll(DoubleIterable source) Overrides org. Overrides default org. Doc from org. Returns true if all of the values specified in the source DoubleIterable are contained in the DoubleIterable, and false if they are not.
| |
| count | back to summary |
|---|---|
| public int count(DoublePredicate predicate) Overrides org. Implements org. Doc from org. Returns a count of the number of elements in the DoubleIterable that return true for the specified predicate.
| |
| detectIfNone | back to summary |
|---|---|
| public double detectIfNone(DoublePredicate predicate, double ifNone) Overrides org. Implements org.
| |
| doubleIterator | back to summary |
|---|---|
| public DoubleIterator doubleIterator() Implements org. Doc from org. Returns a primitive iterator that can be used to iterate over the DoubleIterable in an imperative style.
| |
| each | back to summary |
|---|---|
| public void each(DoubleProcedure procedure) Implements org. Doc from org. A synonym for forEach.
| |
| injectInto | back to summary |
|---|---|
| public <T> T injectInto(T injectedValue, ObjectDoubleToObjectFunction<? super T, ? extends T> function) Overrides org. Implements org.
| |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() Overrides org. Overrides default org. Doc from org. Returns true if this iterable has zero items.
| |
| makeString | back to summary |
|---|---|
| public String makeString() Overrides org. Overrides default org. Doc from org. Returns a string representation of this collection by delegating to
| |
| makeString | back to summary |
|---|---|
| public String makeString(String separator) Overrides org. Overrides default org. Doc from org. Returns a string representation of this collection by delegating to
| |
| makeString | back to summary |
|---|---|
| public String makeString(String start, String separator, String end) Overrides org. Overrides default org. Doc from org. Returns a string representation of this collection with the elements separated by the specified separator and enclosed between the start and end strings.
| |
| max | back to summary |
|---|---|
| public double max() Overrides org. Implements org.
| |
| maxIfEmpty | back to summary |
|---|---|
| public double maxIfEmpty(double defaultValue) Overrides org. Implements org.
| |
| median | back to summary |
|---|---|
| public double median() Overrides org. Implements org.
| |
| min | back to summary |
|---|---|
| public double min() Overrides org. Implements org.
| |
| minIfEmpty | back to summary |
|---|---|
| public double minIfEmpty(double defaultValue) Overrides org. Implements org.
| |
| noneSatisfy | back to summary |
|---|---|
| public boolean noneSatisfy(DoublePredicate predicate) Overrides org. Overrides default org. Doc from org. Returns true if none of the elements in the DoubleIterable return true for the specified predicate, otherwise returns false.
| |
| notEmpty | back to summary |
|---|---|
| public boolean notEmpty() Overrides org. Overrides default org. Doc from org. The English equivalent of !this.isEmpty()
| |
| size | back to summary |
|---|---|
| public int size() Overrides org. Implements org. Doc from org. Returns the number of items in this iterable.
| |
| sum | back to summary |
|---|---|
| public double sum() Overrides org. Implements org.
| |
| toArray | back to summary |
|---|---|
| public double[] toArray() Overrides org. Implements org. Doc from org. Converts the DoubleIterable to a primitive double array.
| |
| toBag | back to summary |
|---|---|
| public MutableDoubleBag toBag() Overrides org. Implements org. Doc from org. Converts the DoubleIterable to a new MutableDoubleBag.
| |
| toList | back to summary |
|---|---|
| public MutableDoubleList toList() Overrides org. Implements org. Doc from org. Converts the DoubleIterable to a new MutableDoubleList.
| |
| toSet | back to summary |
|---|---|
| public MutableDoubleSet toSet() Overrides org. Implements org. Doc from org. Converts the DoubleIterable to a new MutableDoubleSet.
| |
| toSortedArray | back to summary |
|---|---|
| public double[] toSortedArray() Overrides org. Implements org.
| |
| toSortedList | back to summary |
|---|---|
| public MutableDoubleList toSortedList() Overrides org. Implements org.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides org. Implements org. Doc from org. Returns a string with the elements of this iterable separated by commas with spaces and enclosed in square brackets.
Assert.assertEquals("[]", IntLists.mutable.empty().toString());
Assert.assertEquals("[1]", IntLists.mutable.with(1).toString());
Assert.assertEquals("[1, 2, 3]", IntLists.mutable.with(1, 2, 3).toString());
| |