Class VersionedEnumComponent<T>

  • Type Parameters:
    T - The enumeration type
    All Implemented Interfaces:
    IComponent<IValue<T>>, IEventChannel

    public abstract class VersionedEnumComponent<T>
    extends EnumComponent<T>
    Version-aware component for managing the model that is the one possible value of some enumeration.

    Make sure the model is instance of IVersionedModel

    • Constructor Detail

      • VersionedEnumComponent

        public VersionedEnumComponent​(IEnumParameterization parameterization)
        The constructor.
        Parameters:
        parameterization - The parametrization.
    • Method Detail

      • filter

        protected abstract Collection<T> filter​(Collection<T> values,
                                                Version version)
        Filters values for given version.
        Parameters:
        values - the values, cannot be null.
        version - the version, cannot be null.
        Returns:
        the filtered values.