public static <T> Function<Object, T> returnConstant(final T constant) {
    return new Function<Object, T>() {
      @Override
      public T apply(Object ignored) {
        return constant;
      }
    };
  }
public static < T > Function < Object , T > returnConstant ( final T constant ) { return new Function < Object , T > ( ) { @ Override public T apply ( Object ignored ) { return constant ; } } ; }
A {@code Function} that always ignores its argument and returns a constant value.

@return a {@code Function} that always ignores its argument and returns a constant value.
@since 0.5