Class Last

  • All Implemented Interfaces:
    org.jvnet.jaxb2_commons.lang.Equals2, org.jvnet.jaxb2_commons.lang.HashCode2, org.jvnet.jaxb2_commons.lang.ToString2
    Direct Known Subclasses:
    LastEvaluator

    public class Last
    extends OperatorExpression
    implements org.jvnet.jaxb2_commons.lang.Equals2, org.jvnet.jaxb2_commons.lang.HashCode2, org.jvnet.jaxb2_commons.lang.ToString2
    The Last operator returns the last element in a list. If the order by attribute is specified, the list is sorted by that ordering prior to returning the last element. If the argument is null, the result is null.

    Java class for Last complex type.

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

     <complexType name="Last">
       <complexContent>
         <extension base="{urn:hl7-org:elm:r1}OperatorExpression">
           <sequence>
             <element name="source" type="{urn:hl7-org:elm:r1}Expression"/>
           </sequence>
           <attribute name="orderBy" type="{http://www.w3.org/2001/XMLSchema}string" />
         </extension>
       </complexContent>
     </complexType>
     
    • Field Detail

      • orderBy

        protected java.lang.String orderBy
    • Constructor Detail

      • Last

        public Last()
    • Method Detail

      • getSource

        public Expression getSource()
        Gets the value of the source property.
        Returns:
        possible object is Expression
      • setSource

        public void setSource​(Expression value)
        Sets the value of the source property.
        Parameters:
        value - allowed object is Expression
      • getOrderBy

        public java.lang.String getOrderBy()
        Gets the value of the orderBy property.
        Returns:
        possible object is String
      • setOrderBy

        public void setOrderBy​(java.lang.String value)
        Sets the value of the orderBy property.
        Parameters:
        value - allowed object is String
      • withOrderBy

        public Last withOrderBy​(java.lang.String value)
      • equals

        public boolean equals​(org.jvnet.jaxb2_commons.locator.ObjectLocator thisLocator,
                              org.jvnet.jaxb2_commons.locator.ObjectLocator thatLocator,
                              java.lang.Object object,
                              org.jvnet.jaxb2_commons.lang.EqualsStrategy2 strategy)
        Specified by:
        equals in interface org.jvnet.jaxb2_commons.lang.Equals2
        Overrides:
        equals in class OperatorExpression
      • 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 OperatorExpression
      • append

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

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