Class FHIRPathTimeValue

    • Field Detail

      • PARSER_FORMATTER

        public static final java.time.format.DateTimeFormatter PARSER_FORMATTER
    • Method Detail

      • isTimeValue

        public boolean isTimeValue()
        Description copied from interface: FHIRPathTemporalValue
        Indicates whether this FHIRPathTemporalValue is type compatible with FHIRPathTimeValue
        Returns:
        true if this FHIRPathTemporalValue is type compatible with FHIRPathDateValue, otherwise false
      • time

        public java.time.LocalTime time()
        The LocalTime value that is wrapped by this FHIRPathTimeValue
        Returns:
        the LocalTime value that is wrapped by this FHIRPathTimeValue
      • timeValue

        public static FHIRPathTimeValue timeValue​(java.lang.String text)
        Static factory method for creating FHIRPathTimeValue instances from a String value
        Parameters:
        text - the text that is parsed into a LocalTime value
        Returns:
        a new FHIRPathTimeValue instance
      • timeValue

        public static FHIRPathTimeValue timeValue​(java.time.LocalTime time)
        Static factory method for creating FHIRPathTimeValue instances from a LocalTime value
        Parameters:
        time - the LocalTime value
        Returns:
        a new FHIRPathTimeValue instance
      • timeValue

        public static FHIRPathTimeValue timeValue​(java.lang.String name,
                                                  java.time.LocalTime time)
        Static factory method for creating named FHIRPathTimeValue instances from a LocalTime value
        Parameters:
        name - the name
        time - the LocalTime value
        Returns:
        a new named FHIRPathTimeValue instance
      • builder

        public static FHIRPathTimeValue.Builder builder​(java.time.LocalTime time,
                                                        java.time.temporal.ChronoField precision)
        Static factory method for creating builder instances from a LocalTime value and a precision
        Parameters:
        time - the LocalTime value
        precision - the precision
        Returns:
        a new builder for building FHIRPathTimeValue instances
      • equals

        public boolean equals​(java.lang.Object obj)
        Indicates whether the LocalTime value wrapped by this FHIRPathTimeValue 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 date/time value wrapped by this FHIRPathTimeValue 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