@Test public void returnsLongIfFloatCanBeConvertedUsingToLongOrNull() { assertThat(toLongOrNull(1234.56F), is(1234L)); }
public static Long toLongOrNull(String value) { return option(value).flatMap(fromStringToPossibleLong()).getOrNull(); }
Longs { public static Long toLongOrNull(String value) { return option(value).flatMap(fromStringToPossibleLong()).getOrNull(); } }
Longs { public static Long toLongOrNull(String value) { return option(value).flatMap(fromStringToPossibleLong()).getOrNull(); } private  Longs(); }
Longs { public static Long toLongOrNull(String value) { return option(value).flatMap(fromStringToPossibleLong()).getOrNull(); } private  Longs(); static Mapper<String, Long> fromStringToLong(); static Mapper<Integer, Long> fromIntegerToLong(); static Mapper<BigInteger, Long> fromBigIntegerToLong(); static Mapper<Float, Long> fromFloatToLong(); static Mapper<Double, Long> fromDoubleToLong(); static Mapper<BigDecimal, Long> fromBigDecimalToLong(); static Long toLongOrNull(String value); static Long toLongOrNull(Integer value); static Long toLongOrNull(BigInteger value); static Long toLongOrNull(Float value); static Long toLongOrNull(Double value); static Long toLongOrNull(BigDecimal value); static Mapper<String, Option<Long>> fromStringToPossibleLong(); }
Longs { public static Long toLongOrNull(String value) { return option(value).flatMap(fromStringToPossibleLong()).getOrNull(); } private  Longs(); static Mapper<String, Long> fromStringToLong(); static Mapper<Integer, Long> fromIntegerToLong(); static Mapper<BigInteger, Long> fromBigIntegerToLong(); static Mapper<Float, Long> fromFloatToLong(); static Mapper<Double, Long> fromDoubleToLong(); static Mapper<BigDecimal, Long> fromBigDecimalToLong(); static Long toLongOrNull(String value); static Long toLongOrNull(Integer value); static Long toLongOrNull(BigInteger value); static Long toLongOrNull(Float value); static Long toLongOrNull(Double value); static Long toLongOrNull(BigDecimal value); static Mapper<String, Option<Long>> fromStringToPossibleLong();  }