api/src/main/java/com/tersesystems/echopraxia/api/Value.java
/**
   * Utility method to turn a list into a list of values with a transformer.
   *
   * @param values the list of values
   * @param f the function transforming a raw T to a value
   * @param <T> the raw type
   * @return list of values.
   */
Utility method to turn a list into a list of values with a transformer.
@param values the list of values
@param f the function transforming a raw T to a value
@param  the raw type
@return list of values.
Utility method to turn a list into a list of values with a transformer . @param values the list of values @param f the function transforming a raw T to a value @param the raw type @return list of values .
@NotNull
  private static <T> List<Value<?>> asList(
      @NotNull List<T> values, @NotNull Function<T, Value<?>> f) {
    List<Value<?>> list = new ArrayList<>(values.size());
    for (T value : values) {
      Value<?> value1 = f.apply(value);
      list.add(value1);
    }
    return list;
  }
@ NotNull private static < T > List < Value < ? > > asList ( @ NotNull List < T > values , @ NotNull Function < T , Value < ? > > f ) { List < Value < ? > > list = new ArrayList < > ( values . size ( ) ) ; for ( T value : values ) { Value < ? > value1 = f . apply ( value ) ; list . add ( value1 ) ; } return list ; }
Utility method to turn a list into a list of values with a transformer.
Utility method to turn a list into a list of values with a transformer .