Interface Extractor<T,R>

Type Parameters:
T - the type of the input to the function
R - the type of the result of the function

public interface Extractor<T,R>
This is a helper interface until we migrate to Java 8. It allows us to abstract our code easier.
Author:
Filip Hrisafov
  • Method Summary

    Modifier and Type
    Method
    Description
    apply(T t)
    Extract a value from the passed parameter.
  • Method Details

    • apply

      R apply(T t)
      Extract a value from the passed parameter.
      Parameters:
      t - the value that we need to extract from
      Returns:
      the result from the extraction