IT. Expert System.

Android Reference

AbstractSequentialList


java.util

Class AbstractSequentialList<E>

  • All Implemented Interfaces:
    Iterable<E>, Collection<E>, List<E>
    Direct Known Subclasses:
    LinkedList


    public abstract class AbstractSequentialList<E>
    extends AbstractList<E>
    AbstractSequentialList is an abstract implementation of the List interface. This implementation does not support adding. A subclass must implement the abstract method listIterator().
    Since:
    1.2
    • Constructor Detail

      • AbstractSequentialList

        protected AbstractSequentialList()
        Constructs a new instance of this AbstractSequentialList.
    • Method Detail

      • add

        public void add(int location,
               E object)
        Description copied from class: AbstractList
        Inserts the specified object into this List at the specified location. The object is inserted before any previous element at the specified location. If the location is equal to the size of this List, the object is added at the end.

        Concrete implementations that would like to support the add functionality must override this method.

        Specified by:
        add in interface List<E>
        Overrides:
        add in class AbstractList<E>
        Parameters:
        location - the index at which to insert.
        object - the object to add.
      • addAll

        public boolean addAll(int location,
                     Collection<? extends E> collection)
        Description copied from class: AbstractList
        Inserts the objects in the specified Collection at the specified location in this List. The objects are added in the order they are returned from the collection's iterator.
        Specified by:
        addAll in interface List<E>
        Overrides:
        addAll in class AbstractList<E>
        Parameters:
        location - the index at which to insert.
        collection - the Collection of objects
        Returns:
        true if this List is modified, false otherwise.
      • get

        public E get(int location)
        Description copied from class: AbstractList
        Returns the element at the specified location in this list.
        Specified by:
        get in interface List<E>
        Specified by:
        get in class AbstractList<E>
        Parameters:
        location - the index of the element to return.
        Returns:
        the element at the specified index.
      • listIterator

        public abstract ListIterator<E> listIterator(int location)
        Description copied from class: AbstractList
        Returns a list iterator on the elements of this list. The elements are iterated in the same order as they occur in the list. The iteration starts at the specified location.
        Specified by:
        listIterator in interface List<E>
        Overrides:
        listIterator in class AbstractList<E>
        Parameters:
        location - the index at which to start the iteration.
        Returns:
        a ListIterator on the elements of this list.
        See Also:
        ListIterator
      • remove

        public E remove(int location)
        Description copied from class: AbstractList
        Removes the object at the specified location from this list.
        Specified by:
        remove in interface List<E>
        Overrides:
        remove in class AbstractList<E>
        Parameters:
        location - the index of the object to remove.
        Returns:
        the removed object.
      • set

        public E set(int location,
            E object)
        Description copied from class: AbstractList
        Replaces the element at the specified location in this list with the specified object.
        Specified by:
        set in interface List<E>
        Overrides:
        set in class AbstractList<E>
        Parameters:
        location - the index at which to put the specified object.
        object - the object to add.
        Returns:
        the previous element at the index.


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 1794 / 248362410. Delta: 0.03555 с