public class CacheHelper extends Object
Modifier and Type | Field and Description |
---|---|
static PrintStream |
ps |
Constructor and Description |
---|
CacheHelper() |
Modifier and Type | Method and Description |
---|---|
static TimeInterval |
arrange(TimeInterval i)
Returns a re-arranged
TimeInterval if borders order is reversed. |
static boolean |
contains(TimeInterval i1,
TimeInterval i2)
Returns
true if TimeInterval i1 contains
TimeInterval i2, false otherwise (null
border means infinity). |
static String |
format(TimeDuration d)
Returns a formated
String from the specified TimeDuration . |
static String |
format(TimeInterval i)
Returns a formated
String from the specified TimeInterval . |
static String |
format(Timestamp t)
|
static TimeInterval |
intersection(TimeInterval i1,
TimeInterval i2)
Returns the result of
TimeInterval i1 & i2 intersection,
null if i1 does not intersects i2 (null border
means infinity). |
static boolean |
intersects(TimeInterval i1,
TimeInterval i2)
Returns
true if TimeInterval i1 intersects
TimeInterval i2, false otherwise (null
border means infinity). |
static Timestamp |
max(Timestamp t1,
Timestamp t2)
Returns the maximum between the two specified
Timestamp . |
static Timestamp |
min(Timestamp t1,
Timestamp t2)
Returns the minimum between the two specified
Timestamp . |
public static PrintStream ps
public static Timestamp min(Timestamp t1, Timestamp t2)
Timestamp
.public static Timestamp max(Timestamp t1, Timestamp t2)
Timestamp
.public static boolean contains(TimeInterval i1, TimeInterval i2)
true
if TimeInterval
i1 contains
TimeInterval
i2, false
otherwise (null
border means infinity).public static boolean intersects(TimeInterval i1, TimeInterval i2)
true
if TimeInterval
i1 intersects
TimeInterval
i2, false
otherwise (null
border means infinity).public static TimeInterval intersection(TimeInterval i1, TimeInterval i2)
TimeInterval
i1 & i2 intersection,
null
if i1 does not intersects i2 (null
border
means infinity).public static TimeInterval arrange(TimeInterval i)
TimeInterval
if borders order is reversed.public static String format(TimeInterval i)
String
from the specified TimeInterval
.public static String format(TimeDuration d)
String
from the specified TimeDuration
.Copyright © 2015. All rights reserved.