com.groupdocs.metadata.core

Interfaces

Classes

Exceptions

com.groupdocs.metadata.core

Interface IReadOnlyList<T>

  • All Superinterfaces:
    Iterable<T>
    All Known Implementing Classes:
    ReadOnlyList


    public interface IReadOnlyList<T>
    extends Iterable<T>

    Represents a read-only collection of elements that can be accessed by index.

    T: The type of elements in the read-only list.

    • Method Summary

      Methods 
      Modifier and Type Method and Description
      boolean contains(T item)
      Determines whether the collection contains a specific item.
      T get_Item(int index)
      Gets the element at the specified index in the read-only list.
      int getCount()
      Gets the number of elements contained in the collection.
      int indexOf(T item)
      Determines the index of a specific item in the collection.
    • Method Detail

      • getCount

        int getCount()

        Gets the number of elements contained in the collection.

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

        T get_Item(int index)

        Gets the element at the specified index in the read-only list.

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

        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.
      • contains

        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.