Packages

 

com.aspose.imaging

Interfaces

Classes

com.aspose.imaging

Class NonGenericList

  • All Implemented Interfaces:
    com.aspose.ms.System.Collections.ICollection, com.aspose.ms.System.Collections.IEnumerable, com.aspose.ms.System.Collections.IList, Iterable
    Direct Known Subclasses:
    MetaObjectList


    public class NonGenericList
    extends Object
    implements com.aspose.ms.System.Collections.IList

    Non generic list of objects

    • Constructor Summary

      Constructors 
      Constructor and Description
      NonGenericList(com.aspose.ms.System.Collections.Generic.List list)
      Initializes a new instance of the NonGenericList class.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      int addItem(Object value)
      Adds an item to the System.Collections.IList.
      void clear()
      Removes all items from the System.Collections.IList.
      boolean contains(Object value)
      Determines whether the System.Collections.IList contains a specific value.
      void copyTo(com.aspose.ms.System.Array array, int index)
      Copies the elements of the System.Collections.ICollection to an System.Array, starting at a particular System.Array index.
      Object get_Item(int index)
      Gets the element at the specified index.
      Object getSyncRoot()
      Gets an object that can be used to synchronize access to the System.Collections.ICollection.
      int indexOf(Object value)
      Determines the index of a specific item in the System.Collections.IList.
      void insertItem(int index, Object value)
      Inserts an item to the System.Collections.IList at the specified index.
      boolean isFixedSize()
      Gets a value indicating whether the System.Collections.IList has a fixed size.
      boolean isReadOnly()
      Gets a value indicating whether the System.Collections.IList is read-only.
      boolean isSynchronized()
      Gets a value indicating whether access to the System.Collections.ICollection is synchronized (thread safe).
      com.aspose.ms.System.Collections.IEnumerator iterator()
      Returns an enumerator that iterates through a collection.
      void removeAt(int index)
      Removes the System.Collections.IList item at the specified index.
      void removeItem(Object value)
      Removes the first occurrence of a specific object from the System.Collections.IList.
      void set_Item(int index, Object value)
      Sets the element at the specified index.
      int size()
      Gets the number of elements contained in the System.Collections.ICollection.
    • Constructor Detail

      • NonGenericList

        public NonGenericList(com.aspose.ms.System.Collections.Generic.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.

        Specified by:
        addItem in interface com.aspose.ms.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 com.aspose.ms.System.Collections.IList
      • contains

        public boolean contains(Object value)

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

        Specified by:
        contains in interface com.aspose.ms.System.Collections.IList
        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 com.aspose.ms.System.Collections.IList
        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.

        Specified by:
        insertItem in interface com.aspose.ms.System.Collections.IList
        Parameters:
        index - The zero-based index at which value should be inserted.
        value - The System.Object to insert into the System.Collections.IList.
      • isFixedSize

        public boolean isFixedSize()

        Gets a value indicating whether the System.Collections.IList has a fixed size.

        Specified by:
        isFixedSize in interface com.aspose.ms.System.Collections.IList
      • isReadOnly

        public boolean isReadOnly()

        Gets a value indicating whether the System.Collections.IList is read-only.

        Specified by:
        isReadOnly in interface com.aspose.ms.System.Collections.IList
      • get_Item

        public Object get_Item(int index)

        Gets the element at the specified index.

        Specified by:
        get_Item in interface com.aspose.ms.System.Collections.IList
        Parameters:
        index - The index.
        Returns:
        the element at the specified index.
      • set_Item

        public void set_Item(int index,
                             Object value)

        Sets the element at the specified index.

        Specified by:
        set_Item in interface com.aspose.ms.System.Collections.IList
        Parameters:
        index - The index.
      • removeItem

        public void removeItem(Object value)

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

        Specified by:
        removeItem in interface com.aspose.ms.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.

        Specified by:
        removeAt in interface com.aspose.ms.System.Collections.IList
        Parameters:
        index - The zero-based index of the item to remove.
      • copyTo

        public void copyTo(com.aspose.ms.System.Array array,
                           int index)

        Copies the elements of the System.Collections.ICollection to an System.Array, starting at a particular System.Array index.

        Specified by:
        copyTo in interface com.aspose.ms.System.Collections.ICollection
        Parameters:
        array - The one-dimensional System.Array that is the destination of the elements copied from System.Collections.ICollection. The System.Array must have zero-based indexing.
        index - The zero-based index in array at which copying begins.
      • size

        public int size()

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

        Specified by:
        size in interface com.aspose.ms.System.Collections.ICollection
      • isSynchronized

        public boolean isSynchronized()

        Gets a value indicating whether access to the System.Collections.ICollection is synchronized (thread safe).

        Specified by:
        isSynchronized in interface com.aspose.ms.System.Collections.ICollection
      • getSyncRoot

        public Object getSyncRoot()

        Gets an object that can be used to synchronize access to the System.Collections.ICollection.

        Specified by:
        getSyncRoot in interface com.aspose.ms.System.Collections.ICollection
      • iterator

        public com.aspose.ms.System.Collections.IEnumerator iterator()

        Returns an enumerator that iterates through a collection.

        Specified by:
        iterator in interface com.aspose.ms.System.Collections.IEnumerable
        Specified by:
        iterator in interface Iterable
        Returns:
        An System.Collections.IEnumerator object that can be used to iterate through the collection.