Class FHIRPathDecimalValue

    • Method Detail

      • decimal

        public java.math.BigDecimal decimal()
        Description copied from interface: FHIRPathNumberValue
        The BigDecimal value wrapped by this FHIRPathNumberValue
        Specified by:
        decimal in interface FHIRPathNumberValue
        Returns:
        the BigDecimal value wrapped by this FHIRPathNumberValue
      • integer

        public java.lang.Integer integer()
        Description copied from interface: FHIRPathNumberValue
        The Integer value wrapped by this FHIRPathNumberValue
        Specified by:
        integer in interface FHIRPathNumberValue
        Returns:
        the Integer value wrapped by this FHIRPathNumberValue
      • decimalValue

        public static FHIRPathDecimalValue decimalValue​(java.math.BigDecimal decimal)
        Static factory method for creating FHIRPathDecimalValue instances from a BigDecimal value
        Parameters:
        decimal - the BigDecimal value
        Returns:
        a new FHIRPathDecimalValue instance
      • decimalValue

        public static FHIRPathDecimalValue decimalValue​(java.lang.String path,
                                                        java.lang.String name,
                                                        java.math.BigDecimal decimal)
        Static factory method for creating named FHIRPathDecimalValue instances from a BigDecimal value
        Parameters:
        path - the path of the FHIRPathNode
        name - the name
        decimal - the BigDecimal value
        Returns:
        a new named FHIRPathDecimalValue instance
      • builder

        public static FHIRPathDecimalValue.Builder builder​(java.math.BigDecimal decimal)
        Static factory method for creating builder instances from a BigDecimal value
        Parameters:
        decimal - the BigDecimal value
        Returns:
        a new builder for building FHIRPathDecimalValue instances
      • div

        public FHIRPathNumberValue div​(FHIRPathNumberValue value)
        Description copied from interface: FHIRPathNumberValue
        Divide this FHIRPathNumberValue by another FHIRPathNumberValue and convert the result to an integer
        Specified by:
        div in interface FHIRPathNumberValue
        Parameters:
        value - the other FHIRPathNumberValue
        Returns:
        the result of dividing this FHIRPathNumberValue by another FHIRPathNumberValue and converting the result to an integer
      • mod

        public FHIRPathNumberValue mod​(FHIRPathNumberValue value)
        Description copied from interface: FHIRPathNumberValue
        Compute the remainder resulting from the integer division of this FHIRPathNumberValue by another FHIRPathNumberValue
        Specified by:
        mod in interface FHIRPathNumberValue
        Parameters:
        value - the other FHIRPathNumberValue
        Returns:
        the integer remainder resulting from the division of this FHIRPathNumberValue by another FHIRPathNumberValue
      • equals

        public boolean equals​(java.lang.Object obj)
        Indicates whether the decimal value wrapped by this FHIRPathDecimalValue node is equal the parameter (or its primitive value)
        Overrides:
        equals in class java.lang.Object
        Parameters:
        obj - the other Object
        Returns:
        true if the decimal value wrapped by this FHIRPathDecimalValue node is equal the parameter (or its primitive value), otherwise false
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object