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()
Feature
public int availability()
Feature
availability
in interface Feature
public boolean isAvailable()
Feature
isAvailable
in interface Feature
Copyright © 2011–2020 The Apache Software Foundation. All rights reserved.