Class AbstractList<E>

    • Constructor Detail

      • AbstractList

        public AbstractList()
    • Method Detail

      • indexOf

        public int indexOf​(E elem)
        Description copied from interface: List
        Returns the index of the first occurrence of the specified element in the list or -1 if there are no occurrences.
        Specified by:
        indexOf in interface List<E>
      • lastIndexOf

        public int lastIndexOf​(E elem)
        Description copied from interface: List
        Returns the index of the last occurrence of the specified element in the list or -1 if there are no occurrences.
        Specified by:
        lastIndexOf in interface List<E>
      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • asList

        @NotNull
        public java.util.List<E> asList()
        Description copied from interface: List
        Returns an immutable view of this list as an instance of java.util.List.
        Specified by:
        asList in interface List<E>