Package org.togglz.core
Interface Feature
-
- All Known Implementing Classes:
NamedFeature
public interface Feature
This interface represents a feature and is typically implemented by the feature enum.
- Author:
- Christian Kaltepoth
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default boolean
isActive()
Checks whether the feature is active for the current user.String
name()
Returns a textual representation of the feature.
-
-
-
Method Detail
-
name
String name()
Returns a textual representation of the feature. This method is implicitly implemented as feature typically are enumerations.- Returns:
- Name of the feature
-
isActive
default boolean isActive()
Checks whether the feature is active for the current user.- Returns:
true
if the feature is active,false
otherwise
-
-