LayoutPropertyValue, PaintPropertyValuepublic class PropertyValue<T>
extends java.lang.Object
| Constructor | Description |
|---|---|
PropertyValue(java.lang.String name,
T value) |
Not part of the public API.
|
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
equals(java.lang.Object o) |
|
java.lang.Integer |
getColorInt() |
Get the color int value of the property if the value is a color.
|
Expression |
getExpression() |
Get the expression of the property.
|
T |
getValue() |
Get the value of the property.
|
int |
hashCode() |
|
boolean |
isExpression() |
Returns if this is a expression.
|
boolean |
isNull() |
Returns if this is null
|
boolean |
isValue() |
Returns if this is a value.
|
java.lang.String |
toString() |
Get the string representation of a property value.
|
@NonNull public final java.lang.String name
public final T value
public PropertyValue(@NonNull
java.lang.String name,
T value)
name - the property namevalue - the property valuefor construction of spublic boolean isNull()
public boolean isExpression()
@Nullable public Expression getExpression()
public boolean isValue()
@Nullable public T getValue()
@Nullable public java.lang.Integer getColorInt()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object