Package org.apache.pivot.util
Class Time.Range
- java.lang.Object
-
- org.apache.pivot.util.Time.Range
-
- Enclosing class:
- Time
public static final class Time.Range extends java.lang.Object
Represents a range of times.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
contains(Time time)
boolean
contains(Time.Range range)
static Time.Range
decode(java.lang.String value)
boolean
equals(java.lang.Object o)
int
getLength()
int
hashCode()
boolean
intersects(Time.Range range)
Time.Range
normalize()
-
-
-
Field Detail
-
START_KEY
public static final java.lang.String START_KEY
- See Also:
- Constant Field Values
-
END_KEY
public static final java.lang.String END_KEY
- See Also:
- Constant Field Values
-
start
public final Time start
-
end
public final Time end
-
-
Constructor Detail
-
Range
public Range(Time time)
-
Range
public Range(java.lang.String time)
-
Range
public Range(java.lang.String start, java.lang.String end)
-
Range
public Range(Time.Range range)
-
Range
public Range(Dictionary<java.lang.String,?> range)
-
Range
public Range(Sequence<?> range)
-
-
Method Detail
-
getLength
public int getLength()
-
contains
public boolean contains(Time.Range range)
-
contains
public boolean contains(Time time)
-
intersects
public boolean intersects(Time.Range range)
-
normalize
public Time.Range normalize()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
decode
public static Time.Range decode(java.lang.String value)
-
-