Interface OracleJsonIntervalDS

  • All Superinterfaces:
    OracleJsonValue

    public interface OracleJsonIntervalDS
    extends OracleJsonValue
    A SQL/JSON time interval in days, hours, minutes, and seconds.
    • Method Detail

      • getDuration

        java.time.Duration getDuration()
        Returns this interval as a Duration.
        Returns:
        the interval
      • getINTERVALDS

        INTERVALDS getINTERVALDS()
        Returns this value as a oracle.sql.INTERVALDS
        Returns:
        the interval value
      • getString

        java.lang.String getString()
        Returns this interval as an ISO 8601 String.
        Returns:
        the string value
      • hashCode

        int hashCode()
        Returns a hash code equal to Arrays.hashCode(getINTERVALDS().getBytes()) .
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        the hash code
      • equals

        boolean equals​(java.lang.Object obj)
        Compares the specified object with this OracleJsonIntervalDS. Returns true if and only if the other object is an instance of OracleJsonIntervalDS and the intervals are equal.
        Overrides:
        equals in class java.lang.Object
        Parameters:
        obj - the object to be compared for equality
        Returns:
        true if the specified object is equal to this OracleJsonIntervalDS.