net.ranides.assira.generic
Class IdentFunction<T>
java.lang.Object
net.ranides.assira.generic.IdentFunction<T>
- Type Parameters:
T -
- All Implemented Interfaces:
- BiFunction<T,T>, CoFunction<T,T>, Function<T,T>
public class IdentFunction<T>
- extends Object
- implements BiFunction<T,T>
Dwukierunkowa funkcja tożsamościowa.
- Author:
- ranides
|
Method Summary |
T |
apply(T source)
Odwzorowanie tożsamościowe. |
T |
inverse(T value)
Odwzorowanie tożsamościowe. |
IdentFunction
public IdentFunction()
apply
public T apply(T source)
- Odwzorowanie tożsamościowe.
- Specified by:
apply in interface Function<T,T>
- Parameters:
source -
- Returns:
- source
- See Also:
Runnable.run(),
Callable.call()
inverse
public T inverse(T value)
- Odwzorowanie tożsamościowe.
- Specified by:
inverse in interface CoFunction<T,T>
- Parameters:
value -
- Returns:
- value
- See Also:
Runnable.run(),
Callable#call
Copyright © 2013. All Rights Reserved.