public IfFunctionBuilder<I,O> defaultValue(O defaultValue) { return defaultApply(new Functionals.ConstantFunction<I,O>(defaultValue, defaultValue)); } @SuppressWarnings("unchecked")
@SuppressWarnings("unchecked") public IfFunctionBuilder<I,O> defaultGet(Supplier<? extends O> defaultSupplier) { return defaultApply(Functions.forSupplier(defaultSupplier)); } public IfFunctionBuilder<I,O> defaultApply(Function<? super I,? extends O> defaultFunction) {