public class FixedValueFeature extends java.lang.Object implements Feature
| Modifier and Type | Field and Description |
|---|---|
protected int |
availability |
protected java.lang.String |
name |
FEATURE_AVAILABILITY_MAX_VALUE| Constructor and Description |
|---|
FixedValueFeature(java.lang.String name,
boolean available) |
FixedValueFeature(java.lang.String name,
int availability) |
| Modifier and Type | Method and Description |
|---|---|
int |
availability()
Returns the availability of this feature, an integer between 0 and 100.
|
boolean |
isAvailable()
Whether this feature is available or not.
|
java.lang.String |
name()
Returns a textual representation of the feature.
|
public FixedValueFeature(java.lang.String name,
int availability)
public FixedValueFeature(java.lang.String name,
boolean available)
public java.lang.String name()
Featurepublic int availability()
Featureavailability in interface Featurepublic boolean isAvailable()
FeatureisAvailable in interface FeatureCopyright © 2011–2024 The Apache Software Foundation. All rights reserved.