@Test(expected = NullPointerException.class) public void shouldThrowNullPointerExceptionIfNullMapperPassedToMapFifth() throws Exception { Nonuple<Integer, String, Boolean, Double, Long, Name, Colour, Age, Location> nonuple = tuple(5, "Five", true, 3.6, 2L, name("Ellen"), colour("Green"), age(20), location("France")); Mapper<Long, String> mapper = null; nonuple.mapFifth(mapper); }
@Override public <A> Nonuple<R, S, T, U, A, W, X, Y, Z> mapFifth(UnaryFunction<V, A> function) { return nonuple(getFirst(), getSecond(), getThird(), getFourth(), function.call(getFifth()), getSixth(), getSeventh(), getEighth(), getNinth()); }
Nonuple extends Octuple<R, S, T, U, V, W, X, Y> implements Ninth<Z>,
                   MappableNinth<Z, Nonuple<R, S, T, U, V, W, X, Y, ?>> { @Override public <A> Nonuple<R, S, T, U, A, W, X, Y, Z> mapFifth(UnaryFunction<V, A> function) { return nonuple(getFirst(), getSecond(), getThird(), getFourth(), function.call(getFifth()), getSixth(), getSeventh(), getEighth(), getNinth()); } }
Nonuple extends Octuple<R, S, T, U, V, W, X, Y> implements Ninth<Z>,
                   MappableNinth<Z, Nonuple<R, S, T, U, V, W, X, Y, ?>> { @Override public <A> Nonuple<R, S, T, U, A, W, X, Y, Z> mapFifth(UnaryFunction<V, A> function) { return nonuple(getFirst(), getSecond(), getThird(), getFourth(), function.call(getFifth()), getSixth(), getSeventh(), getEighth(), getNinth()); } Nonuple(R first, S second, T third, U fourth, V fifth, W sixth, X seventh, Y eighth, Z ninth); }
Nonuple extends Octuple<R, S, T, U, V, W, X, Y> implements Ninth<Z>,
                   MappableNinth<Z, Nonuple<R, S, T, U, V, W, X, Y, ?>> { @Override public <A> Nonuple<R, S, T, U, A, W, X, Y, Z> mapFifth(UnaryFunction<V, A> function) { return nonuple(getFirst(), getSecond(), getThird(), getFourth(), function.call(getFifth()), getSixth(), getSeventh(), getEighth(), getNinth()); } Nonuple(R first, S second, T third, U fourth, V fifth, W sixth, X seventh, Y eighth, Z ninth); static Nonuple<R, S, T, U, V, W, X, Y, Z> nonuple(
            R first, S second, T third, U fourth, V fifth, W sixth, X seventh, Y eighth, Z ninth); @Override Z getNinth(); @Override Nonuple<A, S, T, U, V, W, X, Y, Z> mapFirst(UnaryFunction<R, A> function); @Override Nonuple<R, A, T, U, V, W, X, Y, Z> mapSecond(UnaryFunction<S, A> function); @Override Nonuple<R, S, A, U, V, W, X, Y, Z> mapThird(UnaryFunction<T, A> function); @Override Nonuple<R, S, T, A, V, W, X, Y, Z> mapFourth(UnaryFunction<U, A> function); @Override Nonuple<R, S, T, U, A, W, X, Y, Z> mapFifth(UnaryFunction<V, A> function); @Override Nonuple<R, S, T, U, V, A, X, Y, Z> mapSixth(UnaryFunction<W, A> function); @Override Nonuple<R, S, T, U, V, W, A, Y, Z> mapSeventh(UnaryFunction<X, A> function); @Override Nonuple<R, S, T, U, V, W, X, A, Z> mapEighth(UnaryFunction<Y, A> function); @Override Nonuple<R, S, T, U, V, W, X, Y, A> mapNinth(UnaryFunction<Z, A> function); @Override Iterable<Object> getValues(); }
Nonuple extends Octuple<R, S, T, U, V, W, X, Y> implements Ninth<Z>,
                   MappableNinth<Z, Nonuple<R, S, T, U, V, W, X, Y, ?>> { @Override public <A> Nonuple<R, S, T, U, A, W, X, Y, Z> mapFifth(UnaryFunction<V, A> function) { return nonuple(getFirst(), getSecond(), getThird(), getFourth(), function.call(getFifth()), getSixth(), getSeventh(), getEighth(), getNinth()); } Nonuple(R first, S second, T third, U fourth, V fifth, W sixth, X seventh, Y eighth, Z ninth); static Nonuple<R, S, T, U, V, W, X, Y, Z> nonuple(
            R first, S second, T third, U fourth, V fifth, W sixth, X seventh, Y eighth, Z ninth); @Override Z getNinth(); @Override Nonuple<A, S, T, U, V, W, X, Y, Z> mapFirst(UnaryFunction<R, A> function); @Override Nonuple<R, A, T, U, V, W, X, Y, Z> mapSecond(UnaryFunction<S, A> function); @Override Nonuple<R, S, A, U, V, W, X, Y, Z> mapThird(UnaryFunction<T, A> function); @Override Nonuple<R, S, T, A, V, W, X, Y, Z> mapFourth(UnaryFunction<U, A> function); @Override Nonuple<R, S, T, U, A, W, X, Y, Z> mapFifth(UnaryFunction<V, A> function); @Override Nonuple<R, S, T, U, V, A, X, Y, Z> mapSixth(UnaryFunction<W, A> function); @Override Nonuple<R, S, T, U, V, W, A, Y, Z> mapSeventh(UnaryFunction<X, A> function); @Override Nonuple<R, S, T, U, V, W, X, A, Z> mapEighth(UnaryFunction<Y, A> function); @Override Nonuple<R, S, T, U, V, W, X, Y, A> mapNinth(UnaryFunction<Z, A> function); @Override Iterable<Object> getValues();  }