public class TLcdTimeBoundsUtil extends Object
ILcdTimeBounds
objects.Modifier and Type | Method and Description |
---|---|
static boolean |
contains(ILcdTimeBounds aOuterTimeBounds,
ILcdTimeBounds aInnerTimeBounds)
Checks whether the specified
aOuterTimeBounds argument contains the
specified aInnerTimeBounds argument. |
static boolean |
interacts(ILcdTimeBounds aTimeBounds1,
ILcdTimeBounds aTimeBounds2)
Checks whether the specified
aTimeBounds1 argument interacts with the
specified aTimeBounds2 argument. |
static ILcdTimeBounds |
intersection(ILcdTimeBounds aTimeBounds1,
ILcdTimeBounds aTimeBounds2)
Returns the intersection between specified
aTimeBounds1 argument and the
specified aTimeBounds2 argument. |
static ILcdTimeBounds |
union(ILcdTimeBounds aTimeBounds1,
ILcdTimeBounds aTimeBounds2)
Returns the union of specified
aTimeBounds1 argument and the specified
aTimeBounds2 argument. |
static ILcdTimeBounds |
union(ILcdTimeBounds aTimeBounds1,
ILcdTimeBounds aTimeBounds2,
boolean aIgnoreUnbounded)
Returns the union of two time bounds.
|
public static boolean contains(ILcdTimeBounds aOuterTimeBounds, ILcdTimeBounds aInnerTimeBounds)
aOuterTimeBounds
argument contains the
specified aInnerTimeBounds
argument.
Note that, if an undefined time settings is found, the containment test shall fail.aOuterTimeBounds
- the outer time bounds.aInnerTimeBounds
- the inner time bounds.aOuterTimeBounds
argument contains the
specified aInnerTimeBounds
argument.public static boolean interacts(ILcdTimeBounds aTimeBounds1, ILcdTimeBounds aTimeBounds2)
aTimeBounds1
argument interacts with the
specified aTimeBounds2
argument.
Note that, if an undefined time settings is found, the interaction test shall fail.aTimeBounds1
- the first time bounds.aTimeBounds2
- the second time bounds.aTimeBounds1
argument interacts with the
specified aTimeBounds2
argument.public static ILcdTimeBounds intersection(ILcdTimeBounds aTimeBounds1, ILcdTimeBounds aTimeBounds2)
aTimeBounds1
argument and the
specified aTimeBounds2
argument.
Note that, if an undefined ILcdTimeBounds
object is found, or when there
is no intersection, an undefined ILcdTimeBounds
is returned.aTimeBounds1
- the first time bounds.aTimeBounds2
- the second time bounds.aTimeBounds1
argument and the
specified aTimeBounds2
argument.public static ILcdTimeBounds union(ILcdTimeBounds aTimeBounds1, ILcdTimeBounds aTimeBounds2)
aTimeBounds1
argument and the specified
aTimeBounds2
argument.
Note that, if an undefined ILcdTimeBounds
object is found, an undefined
ILcdTimeBounds
is returned.aTimeBounds1
- the first time bounds.aTimeBounds2
- the second time bounds.aTimeBounds1
argument and the specified
aTimeBounds2
argument.public static ILcdTimeBounds union(ILcdTimeBounds aTimeBounds1, ILcdTimeBounds aTimeBounds2, boolean aIgnoreUnbounded)
aTimeBounds1
- The first time boundsaTimeBounds2
- The second time boundsaIgnoreUnbounded
- Whether or not to ignore the unbounded parts of timebounds. (See description)