Class ListPlusList<T>

  • Type Parameters:
    T - Type of the list items.
    All Implemented Interfaces:
    Iterable<T>, Collection<T>, List<T>

    public final class ListPlusList<T>
    extends AbstractList<T>
    A read-only list that combines two lists into one, effectively concatenating them.
    • Constructor Detail

      • ListPlusList

        public ListPlusList​(List<? extends T> head,
                            List<? extends T> tail)
        Constructs a new list that combines two lists.
        Parameters:
        head - The first list to be included.
        tail - The second list to be included.