Top Fields Constructors Methods
org.eclipse.collections.impl.block.function

public Class IfFunction<T, V>

extends Object
implements Function<T, V>
Class Inheritance
All Implemented Interfaces
org.eclipse.collections.api.block.function.Function, java.io.Serializable, java.util.function.Function
Imports
org.eclipse.collections.api.block.function.Function, org.eclipse.collections.api.block.predicate.Predicate

Field Summary

Modifier and TypeField and Description
private final Function<? super T, ? extends V>
private final Function<? super T, ? extends V>
private final Predicate<? super T>
private static final long

Constructor Summary

AccessConstructor and Description
public
IfFunction(Predicate<? super T> newPredicate, Function<? super T, ? extends V> function)

public
IfFunction(Predicate<? super T> predicate, Function<? super T, ? extends V> function, Function<? super T, ? extends V> elseFunction)

Method Summary

Modifier and TypeMethod and Description
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

public V
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

elseFunctionback to summary
private final Function<? super T, ? extends V> elseFunction
functionback to summary
private final Function<? super T, ? extends V> function
predicateback to summary
private final Predicate<? super T> predicate
serialVersionUIDback to summary
private static final long serialVersionUID

Constructor Detail

IfFunctionback to summary
public IfFunction(Predicate<? super T> newPredicate, Function<? super T, ? extends V> function)
IfFunctionback to summary
public IfFunction(Predicate<? super T> predicate, Function<? super T, ? extends V> function, Function<? super T, ? extends V> elseFunction)

Method Detail

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Annotations
@Override
valueOfback to summary
public V valueOf(T object)

Implements org.eclipse.collections.api.block.function.Function.valueOf.

Annotations
@Override