Interface EntityCollection<T extends Entity>

  • Type Parameters:
    T - the entity's type
    All Superinterfaces:
    Collection<T>, Iterable<T>
    All Known Implementing Classes:
    EntityList

    public interface EntityCollection<T extends Entity>
    extends Collection<T>
    Methods for entity collections on top of the standard set of collection methods.
    Author:
    Nils Sommer
    • Method Detail

      • toList

        List<T> toList()
        Convert the EntityCollection to a List.
        Returns:
        the list
      • hasNextLink

        boolean hasNextLink()
        Returns:
        true if there is a nextLink to fetch more Entities.
      • getCount

        long getCount()
        Get the count value if available.
        Returns:
        the count value
      • setCount

        void setCount​(long count)
        Set the count value.
        Parameters:
        count - the count value