Class TransformedList<S,​T>

  • Type Parameters:
    S - The source element type
    T - The target element type
    All Implemented Interfaces:
    Iterable<T>, Collection<T>, List<T>

    public class TransformedList<S,​T>
    extends AbstractList<T>
    A read-only view of a list, transforming elements on get. Doesn't support indexOf(Object) and lastIndexOf(Object), because they would need to compare the transformed versions of the original list.