public class PropertyValue<T>
extends java.lang.Object
Constructor and Description |
---|
PropertyValue(java.lang.String name,
T value)
Not part of the public API.
|
Modifier and Type | Method and 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 {@link PropertyValue}s
public 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.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object