Class ResourceCollection<Type>

  • Type Parameters:
    Type - The type of object in this collection
    All Implemented Interfaces:
    java.lang.Iterable<Type>

    public class ResourceCollection<Type>
    extends IridaRepresentationModel
    implements java.lang.Iterable<Type>
    Wraps a collection of ResourceCollection objects to be sent to the client.
    • Constructor Detail

      • ResourceCollection

        public ResourceCollection()
        Default constructor, empty set of resources.
      • ResourceCollection

        public ResourceCollection​(long size)
        Constructor with a pre-defined size for the set of resources.
        Parameters:
        size - the size of the collection.
    • Method Detail

      • iterator

        public java.util.Iterator<Type> iterator()
        Specified by:
        iterator in interface java.lang.Iterable<Type>
      • size

        public int size()
        Get the number of elements in the collection.
        Returns:
        the number of elements in the collection.