Interface FeatureContainer<QI>

Type Parameters:
QI - The type used to represent qualified identifiers
All Known Subinterfaces:
Referent<TB,​S,​I,​QI>
All Known Implementing Classes:
AbstractReferent, DA1ReStrategy.DA1Referent, DefaultFeatureContainer, IA1MrStrategy.IA1MrReferent, IA2FStrategy.IA2FReferent, IA2MgStrategy.IA2MgReferent

public interface FeatureContainer<QI>
A collection of features.

It is assumed that features can be enumerated, have no order or precedence and that each feature container has a finite number of features.

  • Method Summary

    Modifier and Type Method Description
    boolean containsFeaturesOf​(FeatureContainer<QI> other)
    Compares the features in this container to the features in the given container.
    Set<Feature<QI>> getFeatures()
    Provides access to the features of this container.
    boolean isEmpty()
    Returns true, if this container contains no features.
  • Method Details

    • getFeatures

      Provides access to the features of this container.

      TODO: Maybe return a sorted set?

      Returns:
      The set of features in the container. The set is not modifiable.
    • isEmpty

      boolean isEmpty()
      Returns true, if this container contains no features.
      Returns:
      true}, if getFeatures() returns an empty set, false otherwise.
    • containsFeaturesOf

      Compares the features in this container to the features in the given container.
      Parameters:
      other - another container whose features are to be compared to the features in this container.
      Returns:
      {literal true}, if this container contains all features contained in the given container, false otherwise.