Class PropertyValue<T>

java.lang.Object
com.trimblemaps.mapsdk.style.layers.PropertyValue<T>
Direct Known Subclasses:
LayoutPropertyValue, PaintPropertyValue

public class PropertyValue<T> extends Object
Properties for Layer
  • Field Details

    • name

      @NonNull public final String name
    • value

      public final T value
  • Constructor Details

    • PropertyValue

      public PropertyValue(@NonNull String name, T value)
      Not part of the public API.
      Parameters:
      name - the property name
      value - 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

      @Nullable public Expression 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

      @Nullable public T getValue()
      Get the value of the property.
      Returns:
      the property value
    • getColorInt

      @ColorInt @Nullable public Integer 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

      public String toString()
      Get the string representation of a property value.
      Overrides:
      toString in class Object
      Returns:
      the string representation
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object