@Test public void returnsMapperFromDoubleToInteger() { assertThat(fromDoubleToInteger().map(1234.56D), is(1234)); }
public static Mapper<Double, Integer> fromDoubleToInteger() { return new Mapper<Double, Integer>() { @Override public Integer map(Double input) { return input.intValue(); } }; }
Integers { public static Mapper<Double, Integer> fromDoubleToInteger() { return new Mapper<Double, Integer>() { @Override public Integer map(Double input) { return input.intValue(); } }; } }
Integers { public static Mapper<Double, Integer> fromDoubleToInteger() { return new Mapper<Double, Integer>() { @Override public Integer map(Double input) { return input.intValue(); } }; }  }
Integers { public static Mapper<Double, Integer> fromDoubleToInteger() { return new Mapper<Double, Integer>() { @Override public Integer map(Double input) { return input.intValue(); } }; }  static Mapper<String, Integer> fromStringToInteger(); static Mapper<Long, Integer> fromLongToInteger(); static Mapper<BigInteger, Integer> fromBigIntegerToInteger(); static Mapper<Float, Integer> fromFloatToInteger(); static Mapper<Double, Integer> fromDoubleToInteger(); static Mapper<BigDecimal, Integer> fromBigDecimalToInteger(); }
Integers { public static Mapper<Double, Integer> fromDoubleToInteger() { return new Mapper<Double, Integer>() { @Override public Integer map(Double input) { return input.intValue(); } }; }  static Mapper<String, Integer> fromStringToInteger(); static Mapper<Long, Integer> fromLongToInteger(); static Mapper<BigInteger, Integer> fromBigIntegerToInteger(); static Mapper<Float, Integer> fromFloatToInteger(); static Mapper<Double, Integer> fromDoubleToInteger(); static Mapper<BigDecimal, Integer> fromBigDecimalToInteger();  }