Bohtvaroh

Blogger - FPOWJPWB - Function1

Jul 26th, 2012
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 5 0.30 KB | None | 0 0
  1. /**
  2.  * Generic 1-arg function type.
  3.  */
  4. public abstract class Function1<A, B> {
  5.     /**
  6.      * Transform <code>A</code> to <code>B</code>.
  7.      *
  8.      * @param a <code>A</code> to transform
  9.      * @return result of the transformation
  10.      */
  11.     public abstract B apply(A a) throws Exception;
  12. }
Advertisement
Add Comment
Please, Sign In to add comment