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.
        parameterization - The parametrization.
    • Method Detail

      • filter

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