public class BooleanRange extends Object implements NormalizableRange<Boolean>
NormalizableRange.DefaultRange| Modifier and Type | Field and Description |
|---|---|
static BooleanRange |
DEFAULT_RANGE |
NORMALIZED_RANGE| Constructor and Description |
|---|
BooleanRange(NormalizedDouble threshold) |
| Modifier and Type | Method and Description |
|---|---|
Boolean |
denormalizeValue(NormalizedDouble v)
Denormalizes a NormalizedDouble to a value within this NormalizableRange.
|
Boolean |
getMax()
Returns the minimum value of the NormalizableRange.
|
Boolean |
getMin() |
boolean |
isValid(Boolean val)
Returns true if t is within the NormalizableRange.
|
NormalizedDouble |
normalizeValue(Boolean val)
Normalizes a value within the NormalizableRange.
|
public static final BooleanRange DEFAULT_RANGE
public BooleanRange(NormalizedDouble threshold)
public boolean isValid(Boolean val)
NormalizableRangeisValid in interface NormalizableRange<Boolean>val - value to checkpublic NormalizedDouble normalizeValue(Boolean val)
NormalizableRangenormalizeValue in interface NormalizableRange<Boolean>val - value to normalizepublic Boolean denormalizeValue(NormalizedDouble v)
NormalizableRangedenormalizeValue in interface NormalizableRange<Boolean>v - value to denormalizepublic Boolean getMin()
getMin in interface NormalizableRange<Boolean>public Boolean getMax()
NormalizableRangegetMax in interface NormalizableRange<Boolean>Copyright © 2011-2014. All Rights Reserved.