Class AttributeValue

java.lang.Object
org.hisp.dhis.model.AttributeValue

public class AttributeValue extends Object
  • Constructor Details

    • AttributeValue

      public AttributeValue(Attribute attribute, String value)
  • Method Details

    • hasValue

      public boolean hasValue()
      Indicates whether the value is not null or empty.
      Returns:
      true if the value is not null or empty.
    • isDouble

      public boolean isDouble()
      Indicates whether the value represents a double.
      Returns:
      true if the value represents a double.
    • getDoubleValue

      public Double getDoubleValue()
      Returns the value as a Double, only if the value represents a double. Returns null if not.
      Returns:
      a double value.
    • isInteger

      public boolean isInteger()
      Indicates whether the value represents an integer.
      Returns:
      true if the value represents an integer.
    • getIntegerValue

      public Integer getIntegerValue()
      Returns the value as an integer, only if the value represents an integer. Return null if not.
      Returns:
      an integer value.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

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