Package de.espirit.or

Interface EntityList

All Superinterfaces:
Collection<Entity>, Iterable<Entity>, List<Entity>

public interface EntityList extends List<Entity>
A list containing Entity instances. This list also offers the option to get the KeyValue of anelement at a specific index.
Since:
4.0.17
  • Method Details

    • indexOfId

      int indexOfId(KeyValue id)
      Return the index of the entity in the list with the given id or -1 if there is no such entity inthe list. This method is faster then iterating through the elements of the list.
      Parameters:
      id - the key value to look for.
      Returns:
      -1 or the index of the entity with the given id.
      Since:
      4.0.17
    • getKeyValue

      KeyValue getKeyValue(int index)
      Returns the KeyValue of the element at the specified position in this list.
      Parameters:
      index - index of the element to return
      Returns:
      KeyValue of the the element at the specified position in this list
      Throws:
      IndexOutOfBoundsException - if the index is out of range (index < 0 || index >= List.size())
      Since:
      4.0.17