public class SymFeature
extends java.lang.Object
Constructor and Description |
---|
SymFeature()
Empty constructor for an entitlement feature record.
|
Modifier and Type | Method and Description |
---|---|
SymFeature |
enabled(java.lang.Boolean enabled)
Instantiates a
SymFeature by setting it enabled/disabled. |
SymFeature |
entitlement(java.lang.String entitlement)
Instantiates an entitlement feature record.
|
boolean |
equals(java.lang.Object o) |
java.lang.Boolean |
getEnabled()
Checks whether a
SymFeature is enabled or disabled. |
java.lang.String |
getEntitlement()
Retrieves the entitlement from a
SymFeature . |
int |
hashCode() |
void |
setEnabled(java.lang.Boolean enabled)
Enables/disables a
SymFeature . |
void |
setEntitlement(java.lang.String entitlement)
Sets the entitlement for a
SymFeature . |
static java.util.List<org.symphonyoss.symphony.pod.model.Feature> |
toFeatures(SymFeatureList symFeatures)
Converts a
SymFeatureList to a list of Feature . |
java.lang.String |
toString() |
static java.util.List<SymFeature> |
toSymFeatures(org.symphonyoss.symphony.pod.model.FeatureList features)
Converts a
FeatureList to a list of SymFeature . |
public SymFeature()
public SymFeature entitlement(java.lang.String entitlement)
entitlement
- the entitlement to set.SymFeature
.public java.lang.String getEntitlement()
SymFeature
.SymFeature
.public void setEntitlement(java.lang.String entitlement)
SymFeature
.entitlement
- the entitlement to set for a SymFeature
.public SymFeature enabled(java.lang.Boolean enabled)
SymFeature
by setting it enabled/disabled.enabled
- the status to set for the SymFeature
.SymFeature
.public java.lang.Boolean getEnabled()
SymFeature
is enabled or disabled.SymFeature
.public void setEnabled(java.lang.Boolean enabled)
SymFeature
.enabled
- the enabled/disable status to set for a SymFeature
.public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public static java.util.List<SymFeature> toSymFeatures(org.symphonyoss.symphony.pod.model.FeatureList features)
FeatureList
to a list of SymFeature
.features
- the FeatureList
to convert from.SymFeature
.public static java.util.List<org.symphonyoss.symphony.pod.model.Feature> toFeatures(SymFeatureList symFeatures)
SymFeatureList
to a list of Feature
.symFeatures
- the SymFeatureList
to convert from.Feature
.