Class SingleEntryItemCollection

    • Constructor Detail

      • SingleEntryItemCollection

        SingleEntryItemCollection​(IItem item)
    • Method Detail

      • iterator

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

        public IItemCollection apply​(IItemFilter filter)
        Description copied from interface: IItemCollection
        Creates a new item collection with all items in this collection that pass through the filter. The collection may be eagerly or lazily evaluated.
        Specified by:
        apply in interface IItemCollection
        Parameters:
        filter - the filter to use when selecting items for the new collection
        Returns:
        a new collection of items
      • getAggregate

        public <V,​C extends IItemConsumer<C>> V getAggregate​(IAggregator<V,​C> aggregator)
        Description copied from interface: IItemCollection
        Calculates an aggregated value for the items in this collection.
        Specified by:
        getAggregate in interface IItemCollection
        Type Parameters:
        V - aggregate result value type
        C - Item consumer type. See IAggregator.
        Returns:
        the aggregated value
      • hasItems

        public boolean hasItems()
        Specified by:
        hasItems in interface IItemCollection
        Returns:
        true if the collections contains items, false otherwise