net.ranides.assira.generic
Class IdentFunction<T>

java.lang.Object
  extended by 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

Constructor Summary
IdentFunction()
           
 
Method Summary
 T apply(T source)
          Odwzorowanie tożsamościowe.
 T inverse(T value)
          Odwzorowanie tożsamościowe.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IdentFunction

public IdentFunction()
Method Detail

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.