Class NamedFeature

  • All Implemented Interfaces:
    Serializable, Feature

    public class NamedFeature
    extends Object
    implements Feature, Serializable
    This class can be used if just the name of a feature is known but not the enum type. It doesn't try to lazily resolve the type when calling name().
    Author:
    Christian Kaltepoth
    See Also:
    Serialized Form
    • Constructor Detail

      • NamedFeature

        public NamedFeature​(String name)
    • Method Detail

      • name

        public String name()
        Description copied from interface: Feature
        Returns a textual representation of the feature. This method is implicitly implemented as feature typically are enumerations.
        Specified by:
        name in interface Feature
        Returns:
        Name of the feature
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object