Class PropertyValue<T>
java.lang.Object
com.trimblemaps.mapsdk.style.layers.PropertyValue<T>
- Direct Known Subclasses:
LayoutPropertyValue,PaintPropertyValue
Properties for Layer
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanGet the color int value of the property if the value is a color.Get the expression of the property.getValue()Get the value of the property.inthashCode()booleanReturns if this is a expression.booleanisNull()Returns if this is nullbooleanisValue()Returns if this is a value.toString()Get the string representation of a property value.
-
Field Details
-
name
-
value
-
-
Constructor Details
-
PropertyValue
Not part of the public API.- Parameters:
name- the property namevalue- the property value- See Also:
-
-
Method Details
-
isNull
public boolean isNull()Returns if this is null- Returns:
- true if this is null, false if not
-
isExpression
public boolean isExpression()Returns if this is a expression.- Returns:
- true if this is a expression, false if not
-
getExpression
Get the expression of the property.- Returns:
- the property expression
-
isValue
public boolean isValue()Returns if this is a value.- Returns:
- true if is a value, false if not
-
getValue
Get the value of the property.- Returns:
- the property value
-
getColorInt
Get the color int value of the property if the value is a color.- Returns:
- the color int value of the property, null if not a color value
-
toString
Get the string representation of a property value. -
equals
-
hashCode
public int hashCode()
-