Il giorno sabato 23 novembre 2013, Aslak Hellesøy ha scritto:

> In core/src/main/java/cucumber/api/DataTable.java:
>
> > +        List<T> result = tableConverter.toList(type, this, false);
> > +        return result;
> > +    }
> > +
> > +    /**
> > +     * Converts the table to a List of objects. The first column 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> asTransposedList(Type type) {
>
> Is this a convenience method for table.transpose().asList(type)?
>
> If that's the case, I don't want this method. We'd have to provide similar
> convenience methods for the entire interface (asMaps for example) to
> remain consistent.
>

This is a leftover, my bad. I don't even think it's ever used.


> —
> Reply to this email directly or view it on GitHub<https://github.com/cucumber/cucumber-jvm/pull/635/files#r7874900>
> .
>