Class IndexOf

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

public class IndexOf extends OperatorExpression implements org.jvnet.jaxb2_commons.lang.Equals2, org.jvnet.jaxb2_commons.lang.HashCode2, org.jvnet.jaxb2_commons.lang.ToString2
The IndexOf operator returns the 0-based index of the given element in the given source list. The operator uses equality semantics as defined in the Equal operator to determine the index. The search is linear, and returns the index of the first element for which the equality comparison returns true. If the list is empty, or no element is found, the result is -1. If either argument is null, the result is null.

Java class for IndexOf complex type.

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

 <complexType name="IndexOf">
   <complexContent>
     <extension base="{urn:hl7-org:elm:r1}OperatorExpression">
       <sequence>
         <element name="source" type="{urn:hl7-org:elm:r1}Expression"/>
         <element name="element" type="{urn:hl7-org:elm:r1}Expression"/>
       </sequence>
     </extension>
   </complexContent>
 </complexType>