Packages

 

com.aspose.cad

Class NonGenericList

    • 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 T:System.Collections.IList.
      void clear()
      Removes all items from the T:System.Collections.IList.
      boolean contains(Object value)
      Determines whether the T:System.Collections.IList contains a specific value.
      void copyTo(com.aspose.ms.System.Array array, int index)
      Copies the elements of the T:System.Collections.ICollection to an T:System.Array, starting at a particular T:System.Array index.
      Object get_Item(int index)
      Gets or sets the element at the specified index.
      Object getSyncRoot()
      Gets an object that can be used to synchronize access to the T:System.Collections.ICollection.
      int indexOf(Object value)
      Determines the index of a specific item in the T:System.Collections.IList.
      void insertItem(int index, Object value)
      Inserts an item to the T:System.Collections.IList at the specified index.
      boolean isFixedSize()
      Gets a value indicating whether the T:System.Collections.IList has a fixed size.
      boolean isReadOnly()
      Gets a value indicating whether the T:System.Collections.IList is read-only.
      boolean isSynchronized()
      Gets a value indicating whether access to the T: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 T:System.Collections.IList item at the specified index.
      void removeItem(Object value)
      Removes the first occurrence of a specific object from the T:System.Collections.IList.
      void set_Item(int index, Object value)
      Gets or sets the element at the specified index.
      int size()
      Gets the number of elements contained in the T: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 T:System.Collections.IList.

        Specified by:
        addItem in interface com.aspose.ms.System.Collections.IList
        Parameters:
        value - The T:System.Object to add to the T:System.Collections.IList.
        Returns:
        The position into which the new element was inserted.
      • clear

        public void clear()

        Removes all items from the T:System.Collections.IList.

        Specified by:
        clear in interface com.aspose.ms.System.Collections.IList
      • contains

        public boolean contains(Object value)

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

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

        public int indexOf(Object value)

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

        Specified by:
        indexOf in interface com.aspose.ms.System.Collections.IList
        Parameters:
        value - The T:System.Object to locate in the T: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 T: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 T:System.Object to insert into the T:System.Collections.IList.
      • isFixedSize

        public boolean isFixedSize()

        Gets a value indicating whether the T: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 T: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 or sets the element at the specified index.

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

        public void set_Item(int index,
                             Object value)

        Gets or 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 T:System.Collections.IList.

        Specified by:
        removeItem in interface com.aspose.ms.System.Collections.IList
        Parameters:
        value - The T:System.Object to remove from the T:System.Collections.IList.
      • removeAt

        public void removeAt(int index)

        Removes the T: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 T:System.Collections.ICollection to an T:System.Array, starting at a particular T:System.Array index.

        Specified by:
        copyTo in interface com.aspose.ms.System.Collections.ICollection
        Parameters:
        array - The one-dimensional T:System.Array that is the destination of the elements copied from T:System.Collections.ICollection. The T: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 T: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 T: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 T: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 T:System.Collections.IEnumerator object that can be used to iterate through the collection.