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