edu.stanford.nlp.time
Class SUTime.DurationWithFields
java.lang.Object
edu.stanford.nlp.time.SUTime.Temporal
edu.stanford.nlp.time.SUTime.Duration
edu.stanford.nlp.time.SUTime.DurationWithFields
- All Implemented Interfaces:
- FuzzyInterval.FuzzyComparable<SUTime.Duration>, java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<SUTime.Duration>
- Direct Known Subclasses:
- SUTime.InexactDuration
- Enclosing class:
- SUTime
public static class SUTime.DurationWithFields
- extends SUTime.Duration
Duration that is specified using fields such as milliseconds, days, etc.
- See Also:
- Serialized Form
| Methods inherited from class edu.stanford.nlp.time.SUTime.Duration |
compareTo, getDateTimeFields, getDuration, getDuration, getDuration, getInexactDuration, getInexactDuration, getPeriod, getRange, getTime, getTimexType, intersect, intersect, isComparable, isGrounded, makeInexact, max, min, subtract, toFormattedString, toTime, toTime |
| Methods inherited from class edu.stanford.nlp.time.SUTime.Temporal |
addMod, addModApprox, getGranularity, getMod, getRange, getRange, getStandardTemporalType, getTfid, getTfidString, getTid, getTidString, getTimeLabel, getTimexAttributes, getTimexValue, includeTimexAltValue, isApprox, isRef, next, prev, resolve, setTimeZone, setTimeZone, toISOString, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
SUTime.DurationWithFields
public SUTime.DurationWithFields()
SUTime.DurationWithFields
public SUTime.DurationWithFields(org.joda.time.ReadablePeriod period)
SUTime.DurationWithFields
public SUTime.DurationWithFields(SUTime.Duration d,
org.joda.time.ReadablePeriod period)
multiplyBy
public SUTime.Duration multiplyBy(int m)
- Specified by:
multiplyBy in class SUTime.Duration
divideBy
public SUTime.Duration divideBy(int m)
- Specified by:
divideBy in class SUTime.Duration
getJodaTimePeriod
public org.joda.time.Period getJodaTimePeriod()
- Specified by:
getJodaTimePeriod in class SUTime.Duration
getJodaTimeDuration
public org.joda.time.Duration getJodaTimeDuration()
- Specified by:
getJodaTimeDuration in class SUTime.Duration
resolve
public SUTime.Duration resolve(SUTime.Time refTime,
int flags)
- Overrides:
resolve in class SUTime.Duration
add
public SUTime.Duration add(SUTime.Duration d)
- Specified by:
add in class SUTime.Duration
Stanford NLP Group