@Test public void testIsImmutableAndSupportsReplace() { IfFunctionBuilder<Boolean, String> f = IfFunctions.ifEquals(false).value("F").ifEquals(true).value("T").defaultValue("?"); IfFunctionBuilder<Boolean, String> f2 = f.ifEquals(false).value("false").defaultValue("X"); IfFunctionBuilder<Boolean, String> f3 = f2.ifEquals(false).value("F"); checkTF(f, "?"); checkTF(f3, "X"); Assert.assertEquals(f2.apply(false), "false"); }
public static <I> IfFunctionBuilderApplyingFirst<I> ifEquals(I test) { return ifPredicate(Predicates.equalTo(test)); }
IfFunctions { public static <I> IfFunctionBuilderApplyingFirst<I> ifEquals(I test) { return ifPredicate(Predicates.equalTo(test)); } }
IfFunctions { public static <I> IfFunctionBuilderApplyingFirst<I> ifEquals(I test) { return ifPredicate(Predicates.equalTo(test)); }  }
IfFunctions { public static <I> IfFunctionBuilderApplyingFirst<I> ifEquals(I test) { return ifPredicate(Predicates.equalTo(test)); }  static IfFunctionBuilder<I,O> newInstance(Class<I> testType, Class<O> returnType); static IfFunctionBuilderApplyingFirst<I> ifPredicate(Predicate<? super I> test); static IfFunctionBuilderApplyingFirst<I> ifEquals(I test); static IfFunctionBuilderApplyingFirst<I> ifNotEquals(I test); }
IfFunctions { public static <I> IfFunctionBuilderApplyingFirst<I> ifEquals(I test) { return ifPredicate(Predicates.equalTo(test)); }  static IfFunctionBuilder<I,O> newInstance(Class<I> testType, Class<O> returnType); static IfFunctionBuilderApplyingFirst<I> ifPredicate(Predicate<? super I> test); static IfFunctionBuilderApplyingFirst<I> ifEquals(I test); static IfFunctionBuilderApplyingFirst<I> ifNotEquals(I test);  }