|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Function<F,T>
Copied from com.google.common.base.Function to avoid the package dependency. This is so minor that I'm not worried about the license.
| Method Summary | |
|---|---|
T |
apply(F from)
Applies the function to an object of type F, resulting in an object of type T. |
boolean |
equals(java.lang.Object obj)
Indicates whether some other object is equal to this Function. |
| Method Detail |
|---|
T apply(F from)
F, resulting in an object of type T. Note that types
F and T may or may not be the same.
from - the source object
boolean equals(java.lang.Object obj)
Function. This method can return true
only if the specified object is also a Function and, for every input object o, it returns
exactly the same value. Thus, function1.equals(function2) implies that either function1.apply(o)
and function2.apply(o) are both null, or function1.apply(o).equals(function2.apply(o)).
Note that it is always safe not to override Object.equals(java.lang.Object).
equals in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||