public interface Time extends OsidPrimitive, java.lang.Comparable<Time>
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Time time)
Compares this Time with the specified Time to determine the
natural order.
|
Time[] |
denormalizeTime()
Returns an interval based on this Time derived by its
granularity.
|
boolean |
equals(java.lang.Object obj)
Determines if the given
Time is equal to
this one. |
int |
hashCode()
Returns a hash code value for this
Time based on
the types, values, and granularity. |
boolean |
isExclusive(Time t)
Tests if the range of this Time, as specified by its
granularity, does not overlap the given
Time.
|
boolean |
isGreater(Time t)
Tests if this Time is greater than the given Time.
|
boolean |
isInclusive(Time t)
Tests if the range of this Time, as specified by its
granularity, includes the given Time ranged by its
grabularity.
|
boolean |
isLess(Time t)
Tests if this Time is less than the given Time.
|
toStringboolean isGreater(Time t)
t - the time to comparetrue if this time is larger,
false otherwiseNullArgumentException - t
is nullUnsupportedException - cannot compare calendarboolean isLess(Time t)
t - the time to comparetrue if this time is less,
false otherwiseNullArgumentException - t
is nullUnsupportedException - cannot compare calendarboolean isInclusive(Time t)
t - the time to comparetrue if this time includes the given
time, false otherwiseNullArgumentException - t
is nullUnsupportedException - cannot compare calendarboolean isExclusive(Time t)
t - the time to comparetrue if this time is excluded,
false otherwiseNullArgumentException - t
is nullUnsupportedException - cannot compare calendarTime[] denormalizeTime()
true if this time is excluded,
false otherwiseint compareTo(Time time)
compareTo an time is zero, then
equals() must be true and their hash
codes must also be equal for consistent behavior. For
orderings that may yield inconsistent behavior, an external
Comparator should be used.compareTo in interface java.lang.Comparable<Time>time - the time to be comparedUnsupportedException - cannot compare calendarboolean equals(java.lang.Object obj)
Time is equal to
this one.equals in class java.lang.Objectobj - an object to compare true if the given object is equal to
this Time, false
otherwiseint hashCode()
Time based on
the types, values, and granularity.hashCode in class java.lang.Object