Class IOptionalFunction.Restricted<I,O>
- java.lang.Object
-
- com.g2forge.alexandria.java.fluent.optional.function.IOptionalFunction.Restricted<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.Restricted<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 Restricted(IOptionalFunction<? super I,? extends O> function, Predicate<? super I> predicate, IOptional<O> empty)
-
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)
IOptional<O>
getEmpty()
IOptionalFunction<? super I,? extends O>
getFunction()
Predicate<? super I>
getPredicate()
int
hashCode()
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
-
-
-
-
Constructor Detail
-
Restricted
@ConstructorProperties({"function","predicate","empty"}) public Restricted(IOptionalFunction<? super I,? extends O> function, Predicate<? super I> predicate, IOptional<O> empty)
-
-
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>
-
getFunction
public IOptionalFunction<? super I,? extends O> getFunction()
-
canEqual
protected boolean canEqual(Object other)
-
-