@InterfaceAudience.Private public final class FieldValue extends Object implements Comparable<FieldValue>
FieldValue
.Modifier and Type | Field and Description |
---|---|
private FieldValueType |
type |
private Object |
value |
Constructor and Description |
---|
FieldValue(Object value,
FieldValueType type) |
Modifier and Type | Method and Description |
---|---|
float |
asFloat() |
int |
asInt() |
long |
asLong() |
Size |
asSize() |
String |
asString() |
int |
compareTo(FieldValue o) |
int |
compareToIgnoreCase(FieldValue o) |
private Size.Unit |
convertToUnit(String unitSimpleName) |
boolean |
equals(Object o) |
int |
hashCode() |
private Size |
optimizeSize(Size size) |
private Float |
parsePercentString(String percentString) |
private Size |
parseSizeString(String sizeString) |
FieldValue |
plus(FieldValue o) |
String |
toString() |
private final FieldValueType type
FieldValue(Object value, FieldValueType type)
private Size optimizeSize(Size size)
private Size parseSizeString(String sizeString)
private Size.Unit convertToUnit(String unitSimpleName)
private Float parsePercentString(String percentString)
public int asInt()
public long asLong()
public float asFloat()
public int compareTo(@NonNull FieldValue o)
compareTo
in interface Comparable<FieldValue>
public FieldValue plus(FieldValue o)
public int compareToIgnoreCase(FieldValue o)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.