F1.java 346 B

123456789101112131415
  1. package com.yihu.hos.broker.util.funct;
  2. /**
  3. * Represent a function that accept one parameter and return value
  4. * @param <A> The only parameter
  5. * @param <T> The return value
  6. */
  7. public interface F1<A, T> {
  8. /**
  9. * Evaluate or execute the function
  10. * @param obj The parameter
  11. * @return Result of execution
  12. */
  13. T e(A obj);
  14. }