Class IOptionalFunction.Recursive<I,O>
- java.lang.Object
-
- com.g2forge.alexandria.java.fluent.optional.function.IOptionalFunction.Recursive<I,O>
-
- All Implemented Interfaces:
IOptionalFunction<I,O>
,IOptionalFunctional<I,O,IOptionalFunction<? super I,? extends O>>
,IConsumer
,IConsumer1<I>
,IFunction<IOptional<? extends O>>
,IFunction1<I,IOptional<? extends O>>
,IFunctional
,IThrowConsumer1<I,RuntimeException>
,IThrowFunction1<I,IOptional<? extends O>,RuntimeException>
,Consumer<I>
,Function<I,IOptional<? extends O>>
- Enclosing interface:
- IOptionalFunction<I,O>
public static class IOptionalFunction.Recursive<I,O> extends Object implements IOptionalFunction<I,O>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.g2forge.alexandria.java.function.IFunction1
IFunction1.Identity<T>
-
Nested classes/interfaces inherited from interface com.g2forge.alexandria.java.fluent.optional.function.IOptionalFunction
IOptionalFunction.Empty<I,O>, IOptionalFunction.Overridden<I,O>, IOptionalFunction.Recursive<I,O>, IOptionalFunction.Restricted<I,O>
-
-
Constructor Summary
Constructors Constructor Description Recursive(BiPredicate<? super I,? super I> terminate, boolean prior, Class<I> type, IOptionalFunction<? super I,? extends O> function)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IOptional<? extends O>
apply(I i)
protected boolean
canEqual(Object other)
boolean
equals(Object o)
IOptionalFunction<? super I,? extends O>
getFunction()
BiPredicate<? super I,? super I>
getTerminate()
Class<I>
getType()
int
hashCode()
boolean
isPrior()
String
toString()
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.g2forge.alexandria.java.function.IConsumer1
andThen
-
Methods inherited from interface com.g2forge.alexandria.java.function.IFunction1
accept, andThen, applyWithFallback, compose, curry, lift, lift, noReturn, override, sync, toConsumer, toFunction, wrap
-
Methods inherited from interface com.g2forge.alexandria.java.fluent.optional.function.IOptionalFunction
fallback, override, recursive, restrict
-
Methods inherited from interface com.g2forge.alexandria.java.function.IThrowFunction1
wrap
-
-
-
-
Field Detail
-
terminate
protected final BiPredicate<? super I,? super I> terminate
-
prior
protected final boolean prior
-
function
protected final IOptionalFunction<? super I,? extends O> function
-
-
Constructor Detail
-
Recursive
@ConstructorProperties({"terminate","prior","type","function"}) public Recursive(BiPredicate<? super I,? super I> terminate, boolean prior, Class<I> type, IOptionalFunction<? super I,? extends O> function)
-
-
Method Detail
-
apply
public IOptional<? extends O> apply(I i)
- Specified by:
apply
in interfaceFunction<I,O>
- Specified by:
apply
in interfaceIThrowFunction1<I,IOptional<? extends O>,RuntimeException>
-
getTerminate
public BiPredicate<? super I,? super I> getTerminate()
-
isPrior
public boolean isPrior()
-
getFunction
public IOptionalFunction<? super I,? extends O> getFunction()
-
canEqual
protected boolean canEqual(Object other)
-
-