Lines Matching defs:asCollector
849 // asSpreader and asCollector are approximate inverses:
852 MethodHandle equals2 = equals.asSpreader(a, n).asCollector(a, n);
860 MethodHandle caString3 = caToString.asCollector(char[].class, 3);
877 * @see #asCollector
1043 MethodHandle ts1 = deepToString.asCollector(Object[].class, 1);
1048 MethodHandle ts2 = deepToString.asCollector(String[].class, 2);
1051 MethodHandle ts0 = deepToString.asCollector(Object[].class, 0);
1054 MethodHandle ts22 = deepToString.asCollector(Object[].class, 3).asCollector(String[].class, 2);
1059 .asCollector(byte[].class, 3);
1063 .asCollector(long[].class, 1);
1083 public MethodHandle asCollector(Class<?> arrayType, int arrayLength) {
1084 return asCollector(type().parameterCount() - 1, arrayType, arrayLength);
1094 * This method behaves very much like {@link #asCollector(Class, int)}, but differs in that its {@code
1102 MethodHandle swWrite4 = swWrite.asCollector(0, char[].class, 4);
1127 * @see #asCollector(Class, int)
1130 public MethodHandle asCollector(int collectArgPos, Class<?> arrayType, int arrayLength) {
1144 * See if {@code asCollector} can be validly called with the given arguments.
1182 * {@linkplain #asCollector fixed arity collector},
1219 * temporarily adapted with a {@linkplain #asCollector fixed arity collector}
1221 * (As with {@code asCollector}, if the array length is zero,
1223 * If the implied call to {@code asCollector} would throw
1248 * use {@link #asCollector asCollector} instead.
1307 * @see #asCollector