Пример #1
0
 /**
  * Converts the table to a List of objects. The top row is used to identifies the
  * fields/properties of the objects.
  *
  * <p>Backends that support generic types can declare a parameter as a List of a type, and
  * Cucumber will do the conversion automatically.
  *
  * @param type the type of the result (should be a {@link List} generic type)
  * @param <T> the type of each object
  * @return a list of objects
  */
 public <T> List<T> asList(Type type) {
   List<T> result = tableConverter.toList(type, this);
   return result;
 }