this.sources = Functions.generate(rowType.getFieldCount(), i -> ImmutableIntList.of(offset + i)); this.trivial = true;
/** Returns a list that contains the values lower to upper - 1. * * <p>For example, {@code range(1, 3)} contains [1, 2]. */ public static List<Integer> range(final int lower, final int upper) { return Functions.generate(upper - lower, new Function1<Integer, Integer>() { /** @see Bug#upgrade(String) Upgrade to {@code IntFunction} when we * drop support for JDK 1.7 */ public Integer apply(Integer index) { return lower + index; } }); }
/** Returns a list that contains the values lower to upper - 1. * * <p>For example, {@code range(1, 3)} contains [1, 2]. */ public static List<Integer> range(final int lower, final int upper) { return Functions.generate(upper - lower, new Function1<Integer, Integer>() { /** @see Bug#upgrade(String) Upgrade to {@code IntFunction} when we * drop support for JDK 1.7 */ public Integer apply(Integer index) { return lower + index; } }); }
/** * Returns a list of parameter names. * * <p>The default implementation returns {@code [arg0, arg1, ..., argN]}. */ public List<String> getParamNames() { return Functions.generate(paramTypes.size(), i -> "arg" + i); }
/** * Returns a list of parameter names. * * <p>The default implementation returns {@code [arg0, arg1, ..., argN]}. */ public List<String> getParamNames() { return Functions.generate(paramTypes.size(), i -> "arg" + i); }
permutedArgTypes = Functions.generate(paramTypes.size(), a0 -> { if (map.containsKey(a0)) { return argTypes.get(map.get(a0));
permutedArgTypes = Functions.generate(paramTypes.size(), a0 -> { if (map.containsKey(a0)) { return argTypes.get(map.get(a0));
this.sources = Functions.generate(rowType.getFieldCount(), i -> ImmutableIntList.of(offset + i)); this.trivial = true;
this.sources = Functions.generate(rowType.getFieldCount(), i -> ImmutableIntList.of(offset + i)); this.trivial = true;