Class NamedFeature

java.lang.Object
org.togglz.core.util.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:
  • Constructor Details

    • NamedFeature

      public NamedFeature(String name)
  • Method Details

    • 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
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object