Packages

 

com.aspose.imaging

Interfaces

Classes

Exceptions

com.aspose.imaging

Class NonGenericList

    • Constructor Detail

      • NonGenericList

        public NonGenericList(List list)

        Initializes a new instance of the NonGenericList class.

        Parameters:
        list - The list - container of objects.
    • Method Detail

      • addItem

        public int addItem(Object value)

        Adds an item to the System.Collections.IList.

        Parameters:
        value - The System.Object to add to the System.Collections.IList.
        Returns:
        The position into which the new element was inserted.
      • clear

        public void clear()

        Removes all items from the System.Collections.IList.

        Specified by:
        clear in interface Collection
        Specified by:
        clear in interface List
      • contains

        public boolean contains(Object value)

        Determines whether the System.Collections.IList contains a specific value.

        Specified by:
        contains in interface Collection
        Specified by:
        contains in interface List
        Parameters:
        value - The System.Object to locate in the System.Collections.IList.
        Returns:
        true if the System.Object is found in the System.Collections.IList; otherwise, false.
      • indexOf

        public int indexOf(Object value)

        Determines the index of a specific item in the System.Collections.IList.

        Specified by:
        indexOf in interface List
        Parameters:
        value - The System.Object to locate in the System.Collections.IList.
        Returns:
        The index of value if found in the list; otherwise, -1.
      • insertItem

        public void insertItem(int index,
                               Object value)

        Inserts an item to the System.Collections.IList at the specified index.

        Parameters:
        index - The zero-based index at which value should be inserted.
        value - The System.Object to insert into the System.Collections.IList.
      • get

        public Object get(int index)

        Gets the element at the specified index.

        Specified by:
        get in interface List
        Parameters:
        index - The index.
        Returns:
        the element at the specified index.
      • set

        public Object set(int index,
                          Object value)

        Sets the element at the specified index.

        Specified by:
        set in interface List
        Parameters:
        index - The index.
      • removeItem

        public void removeItem(Object value)

        Removes the first occurrence of a specific object from the System.Collections.IList.

        Parameters:
        value - The System.Object to remove from the System.Collections.IList.
      • removeAt

        public void removeAt(int index)

        Removes the System.Collections.IList item at the specified index.

        Parameters:
        index - The zero-based index of the item to remove.
      • size

        public int size()

        Gets the number of elements contained in the System.Collections.ICollection.

        Specified by:
        size in interface Collection
        Specified by:
        size in interface List
      • addAll

        public boolean addAll(int index,
                              Collection c)
        Specified by:
        addAll in interface List
      • add

        public void add(int index,
                        Object element)
        Specified by:
        add in interface List
      • remove

        public Object remove(int index)
        Specified by:
        remove in interface List
      • subList

        public List<Object> subList(int fromIndex,
                                    int toIndex)
        Specified by:
        subList in interface List
      • iterator

        public Iterator iterator()

        Returns an enumerator that iterates through a collection.

        Specified by:
        iterator in interface Iterable
        Specified by:
        iterator in interface Collection
        Specified by:
        iterator in interface List
        Returns:
        An System.Collections.IEnumerator object that can be used to iterate through the collection.