@Override public boolean allSatisfy(Predicate<? super T> predicate) { return ArrayIterate.allSatisfy(this.elements, predicate); }
public static <E> HashBag<E> newBagWith(E... elements) { HashBag<E> result = HashBag.newBag(); ArrayIterate.addAllTo(elements, result); return result; }
@Override public <P> boolean allSatisfyWith(Predicate2<? super T, ? super P> predicate, P parameter) { return ArrayIterate.allSatisfyWith(this.elements, predicate, parameter); }
/** * @see Iterate#collect(Iterable, Function) */ public static <T, V> MutableList<V> collect( T[] objectArray, Function<? super T, ? extends V> function) { if (objectArray == null) { throw new IllegalArgumentException("Cannot perform a collect on null"); } return ArrayIterate.collect(objectArray, function, FastList.<V>newList(objectArray.length)); }
@Override public <P> boolean anySatisfyWith(Predicate2<? super T, ? super P> predicate, P parameter) { return ArrayIterate.anySatisfyWith(this.keys, predicate, parameter); }
/** * @see Iterate#appendString(Iterable, Appendable) */ public static <T> void appendString(T[] array, Appendable appendable) { ArrayIterate.appendString(array, appendable, ", "); }
@Override public boolean anySatisfy(Predicate<? super T> predicate) { return ArrayIterate.anySatisfy(this.keys, predicate); }
/** * @see Iterate#collectByte(Iterable, ByteFunction) */ public static <T> MutableByteList collectByte(T[] objectArray, ByteFunction<? super T> byteFunction) { if (objectArray == null) { throw new IllegalArgumentException("Cannot perform a collectByte on null"); } return ArrayIterate.collectByte(objectArray, byteFunction, new ByteArrayList(objectArray.length)); }
/** * @see Iterate#collectBoolean(Iterable, BooleanFunction) */ public static <T> MutableBooleanList collectBoolean(T[] objectArray, BooleanFunction<? super T> booleanFunction) { if (objectArray == null) { throw new IllegalArgumentException("Cannot perform a collectBoolean on null"); } return ArrayIterate.collectBoolean(objectArray, booleanFunction, new BooleanArrayList(objectArray.length)); }
/** * @see Iterate#collectChar(Iterable, CharFunction) */ public static <T> MutableCharList collectChar(T[] objectArray, CharFunction<? super T> charFunction) { if (objectArray == null) { throw new IllegalArgumentException("Cannot perform a collectChar on null"); } return ArrayIterate.collectChar(objectArray, charFunction, new CharArrayList(objectArray.length)); }
private void combineTasks() { if (!this.combiner.useCombineOne()) { this.combiner.combineAll(ArrayIterate.collect(this.procedures, this.procedureFunction)); } }
@Override public <P> boolean anySatisfyWith(Predicate2<? super T, ? super P> predicate, P parameter) { return ArrayIterate.anySatisfyWith(this.elements, predicate, parameter); }
/** * @see Iterate#makeString(Iterable, String, String, String) */ public static <T> String makeString(T[] array, String start, String separator, String end) { Appendable stringBuilder = new StringBuilder(); ArrayIterate.appendString(array, stringBuilder, start, separator, end); return stringBuilder.toString(); }
@Override public boolean anySatisfy(Predicate<? super T> predicate) { return ArrayIterate.anySatisfy(this.elements, predicate); }
/** * @see Iterate#collectByte(Iterable, ByteFunction) */ public static <T> MutableByteList collectByte(T[] objectArray, ByteFunction<? super T> byteFunction) { if (objectArray == null) { throw new IllegalArgumentException("Cannot perform a collectByte on null"); } return ArrayIterate.collectByte(objectArray, byteFunction, new ByteArrayList(objectArray.length)); }
/** * @see Iterate#collectBoolean(Iterable, BooleanFunction) */ public static <T> MutableBooleanList collectBoolean(T[] objectArray, BooleanFunction<? super T> booleanFunction) { if (objectArray == null) { throw new IllegalArgumentException("Cannot perform a collectBoolean on null"); } return ArrayIterate.collectBoolean(objectArray, booleanFunction, new BooleanArrayList(objectArray.length)); }
/** * @see Iterate#collectChar(Iterable, CharFunction) */ public static <T> MutableCharList collectChar(T[] objectArray, CharFunction<? super T> charFunction) { if (objectArray == null) { throw new IllegalArgumentException("Cannot perform a collectChar on null"); } return ArrayIterate.collectChar(objectArray, charFunction, new CharArrayList(objectArray.length)); }
@Override public boolean allSatisfy(Predicate<? super T> predicate) { return ArrayIterate.allSatisfy(this.keys, predicate); }
private void combineTasks() { if (!this.combiner.useCombineOne()) { this.combiner.combineAll(ArrayIterate.collect(this.procedures, this.procedureFunction)); } }
@Override public <P> boolean allSatisfyWith(Predicate2<? super T, ? super P> predicate, P parameter) { return ArrayIterate.allSatisfyWith(this.keys, predicate, parameter); }