Package oracle.sql.json
Interface OracleJsonIntervalDS
-
- All Superinterfaces:
OracleJsonValue
public interface OracleJsonIntervalDS extends OracleJsonValue
A SQL/JSON time interval in days, hours, minutes, and seconds.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface oracle.sql.json.OracleJsonValue
OracleJsonValue.OracleJsonType
-
-
Field Summary
-
Fields inherited from interface oracle.sql.json.OracleJsonValue
FALSE, NULL, TRUE
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
equals(Object obj)
Compares the specified object with thisOracleJsonIntervalDS
.java.time.Duration
getDuration()
Returns this interval as aDuration
.INTERVALDS
getINTERVALDS()
Returns this value as aoracle.sql.INTERVALDS
String
getString()
Returns this interval as an ISO 8601 String.int
hashCode()
Returns a hash code equal toArrays.hashCode(getINTERVALDS().getBytes())
.-
Methods inherited from interface oracle.sql.json.OracleJsonValue
asJsonArray, asJsonBinary, asJsonDate, asJsonDecimal, asJsonDouble, asJsonFloat, asJsonIntervalDS, asJsonIntervalYM, asJsonNumber, asJsonObject, asJsonString, asJsonTimestamp, asJsonTimestampTZ, getOracleJsonType, toString, wrap
-
-
-
-
Method Detail
-
getDuration
java.time.Duration getDuration()
Returns this interval as aDuration
.- Returns:
- the interval
-
getINTERVALDS
INTERVALDS getINTERVALDS()
Returns this value as aoracle.sql.INTERVALDS
- Returns:
- the interval value
-
getString
String getString()
Returns this interval as an ISO 8601 String.- Returns:
- the string value
-
hashCode
int hashCode()
Returns a hash code equal toArrays.hashCode(getINTERVALDS().getBytes())
.
-
equals
boolean equals(Object obj)
Compares the specified object with thisOracleJsonIntervalDS
. Returns true if and only if the other object is an instance ofOracleJsonIntervalDS
and the intervals are equal.
-
-