Package org.hl7.fhir

Class Money

All Implemented Interfaces:
org.jvnet.jaxb2_commons.lang.Equals2, org.jvnet.jaxb2_commons.lang.HashCode2, org.jvnet.jaxb2_commons.lang.ToString2

public class Money extends Quantity implements org.jvnet.jaxb2_commons.lang.Equals2, org.jvnet.jaxb2_commons.lang.HashCode2, org.jvnet.jaxb2_commons.lang.ToString2

Java class for Money complex type.

The following schema fragment specifies the expected content contained within this class.

 <complexType name="Money">
   <complexContent>
     <restriction base="{http://hl7.org/fhir}Quantity">
       <sequence>
         <element name="extension" type="{http://hl7.org/fhir}Extension" maxOccurs="unbounded" minOccurs="0"/>
         <element name="value" type="{http://hl7.org/fhir}decimal" minOccurs="0"/>
         <element name="comparator" type="{http://hl7.org/fhir}QuantityComparator" minOccurs="0"/>
         <element name="unit" type="{http://hl7.org/fhir}string" minOccurs="0"/>
         <element name="system" type="{http://hl7.org/fhir}uri" minOccurs="0"/>
         <element name="code" type="{http://hl7.org/fhir}code" minOccurs="0"/>
       </sequence>
       <attribute name="id" type="{http://hl7.org/fhir}id-primitive" />
     </restriction>
   </complexContent>
 </complexType>
 
  • Constructor Details

    • Money

      public Money()
  • Method Details

    • withValue

      public Money withValue(Decimal value)
      Overrides:
      withValue in class Quantity
    • withComparator

      public Money withComparator(QuantityComparator value)
      Overrides:
      withComparator in class Quantity
    • withUnit

      public Money withUnit(String value)
      Overrides:
      withUnit in class Quantity
    • withSystem

      public Money withSystem(Uri value)
      Overrides:
      withSystem in class Quantity
    • withCode

      public Money withCode(Code value)
      Overrides:
      withCode in class Quantity
    • withExtension

      public Money withExtension(Extension... values)
      Overrides:
      withExtension in class Quantity
    • withExtension

      public Money withExtension(Collection<Extension> values)
      Overrides:
      withExtension in class Quantity
    • withId

      public Money withId(String value)
      Overrides:
      withId in class Quantity
    • equals

      public boolean equals(org.jvnet.jaxb2_commons.locator.ObjectLocator thisLocator, org.jvnet.jaxb2_commons.locator.ObjectLocator thatLocator, Object object, org.jvnet.jaxb2_commons.lang.EqualsStrategy2 strategy)
      Specified by:
      equals in interface org.jvnet.jaxb2_commons.lang.Equals2
      Overrides:
      equals in class Quantity
    • equals

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

      public int hashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, org.jvnet.jaxb2_commons.lang.HashCodeStrategy2 strategy)
      Specified by:
      hashCode in interface org.jvnet.jaxb2_commons.lang.HashCode2
      Overrides:
      hashCode in class Quantity
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Quantity
    • toString

      public String toString()
      Overrides:
      toString in class Quantity
    • append

      public StringBuilder append(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)
      Specified by:
      append in interface org.jvnet.jaxb2_commons.lang.ToString2
      Overrides:
      append in class Quantity
    • appendFields

      public StringBuilder appendFields(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)
      Specified by:
      appendFields in interface org.jvnet.jaxb2_commons.lang.ToString2
      Overrides:
      appendFields in class Quantity