Interface AddToAggregateItem<S,​T>

Type Parameters:
S - individual-item type
T - aggregate-item type (combines many individual types)
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface
public interface AddToAggregateItem<S,​T>
Adds an individual-item to an aggregate-item.
Author:
Owen Feehan
  • Method Summary

    Modifier and Type Method Description
    void add​(S individual, T aggregate)
    Adds an individual item to an aggregate item.
  • Method Details

    • add

      void add​(S individual, T aggregate) throws org.anchoranalysis.core.exception.OperationFailedException
      Adds an individual item to an aggregate item.
      Parameters:
      individual - the individual item to be added
      aggregate - the aggregate item to which the individual item is added
      Throws:
      org.anchoranalysis.core.exception.OperationFailedException - if the addition operation fails