net.ranides.assira.generic
Interface CoFunction<T,S>

Type Parameters:
T -
S -
All Known Subinterfaces:
BiFunction<T,S>
All Known Implementing Classes:
IdentFunction, ListBiAdapter, ListBiAdapterTT, MapBiAdapter, MapBiAdapterTT

public interface CoFunction<T,S>

Interfejs reprezentujący odwzorowanie odwrotne do S -> T (funktor, wyrażenie lambda).

Może być interpretowany jako uogólnienie interfejsu Runnable, który reprezentuje funkcję void -> void (procedurę) albo interfejsu Callable, który reprezentuje funkcję void -> T.

Author:
ranides

Method Summary
 S inverse(T value)
          Bezstanowa metoda implementująca zachowanie funkcji.
 

Method Detail

inverse

S inverse(T value)
Bezstanowa metoda implementująca zachowanie funkcji.

Może być interpretowana jako transformacja odwrotna do S -> T.

Parameters:
value -
Returns:
See Also:
Runnable.run(), Callable#call


Copyright © 2013. All Rights Reserved.