com.groupdocs.watermark.common

Class ReadOnlyListBase<T>

    • Constructor Summary

      Constructors 
      Modifier Constructor and Description
      protected ReadOnlyListBase()
      Initializes a new instance of the ReadOnlyListBase{T} class.
    • Constructor Detail

      • ReadOnlyListBase

        protected ReadOnlyListBase()

        Initializes a new instance of the ReadOnlyListBase{T} class.

    • Method Detail

      • getCount

        public int getCount()

        Gets the number of elements contained in the collection.

        Returns:
        The number of elements contained in the collection.
      • get_Item

        public T get_Item(int index)

        Gets the element at the specified index in the collection.

        Parameters:
        index - The zero-based index of the element to get. Value: The element at the specified index.
        Returns:
        The element at the specified index in the read-only list.
      • contains

        public boolean contains(T item)

        Determines whether the collection contains a specific item.

        Parameters:
        item - The item to locate in the collection.
        Returns:
        True if the item is found in the collection; otherwise, false.
      • indexOf

        public int indexOf(T item)

        Determines the index of a specific item in the collection.

        Parameters:
        item - The item to locate in the collection.
        Returns:
        The index of item if found in the collection; otherwise, -1.
      • iterator

        public Iterator<T> iterator()

        Returns an enumerator that iterates through a collection.

        Returns:
        An IEnumerator{T} object that can be used to iterate through the collection.