Package org.hisp.dhis.model
Class AttributeValue
java.lang.Object
org.hisp.dhis.model.AttributeValue
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value as a Double, only if the value represents a double.Returns the value as an integer, only if the value represents an integer.inthashCode()booleanhasValue()Indicates whether the value is not null or empty.booleanisDouble()Indicates whether the value represents a double.booleanIndicates whether the value represents an integer.
-
Constructor Details
-
AttributeValue
-
-
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
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
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() -
equals
-