public final class Feature extends Object implements Serializable
Constructor and Description |
---|
Feature(Feature feature)
Create a copy of the given feature.
|
Feature(String title,
String id,
String moreInfoLink,
boolean requiresServerRestart)
Creates a new feature with the given options.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getId() |
String |
getMoreInfoLink() |
String |
getTitle() |
int |
hashCode() |
boolean |
isEnabled() |
boolean |
isRequiresServerRestart() |
void |
setEnabled(boolean enabled) |
public Feature(String title, String id, String moreInfoLink, boolean requiresServerRestart)
title
- the title of the featureid
- the unique id of the featuremoreInfoLink
- a link to an issue describing the feature on a high levelrequiresServerRestart
- true
if toggling the feature requires a server restartpublic Feature(Feature feature)
feature
- feature to create a copy ofCopyright © 2024. All rights reserved.