Class CypherDuration

  • All Implemented Interfaces:
    com.graphdbapi.memory.MemoryEstimable, java.time.temporal.TemporalAmount

    public final class CypherDuration
    extends CypherValue
    implements java.time.temporal.TemporalAmount
    Driver传输Duration类型的对象。
    • Method Detail

      • duration

        public static CypherDuration duration​(java.time.Duration value)
      • duration

        public static CypherDuration duration​(java.time.Period value)
      • duration

        public static CypherDuration duration​(long months,
                                              long days,
                                              long seconds,
                                              long nanos)
      • asObjectCopy

        public java.time.temporal.TemporalAmount asObjectCopy()
        Specified by:
        asObjectCopy in class CypherValue
      • get

        public long get​(java.time.temporal.TemporalUnit unit)
        Specified by:
        get in interface java.time.temporal.TemporalAmount
      • getUnits

        public java.util.List<java.time.temporal.TemporalUnit> getUnits()
        Specified by:
        getUnits in interface java.time.temporal.TemporalAmount
      • addTo

        public java.time.temporal.Temporal addTo​(java.time.temporal.Temporal temporal)
        Specified by:
        addTo in interface java.time.temporal.TemporalAmount
      • subtractFrom

        public java.time.temporal.Temporal subtractFrom​(java.time.temporal.Temporal temporal)
        Specified by:
        subtractFrom in interface java.time.temporal.TemporalAmount