Modifier and Type | Field and Description |
---|---|
public static final TimeComparison | AFTER
After Comparison. |
public static final TimeComparison | BEFORE
Before Comparison. |
public static final TimeComparison | EQUAL
Equal Comparison. |
private static final FileUtils | |
private static final String[] |
Access | Constructor and Description |
---|---|
public | |
public | TimeComparison(String
the EnumeratedAttribute value. value)Construct a new TimeComparison with the specified value. |
Modifier and Type | Method and Description |
---|---|
public static int | Returns: a negative integer, a positive integer, or zero as t1 is before, after, or equal to t2 accounting for the default granularity.the first time to compare. t1, long the second time to compare. t2)Compare two times. |
public static int | Returns: a negative integer, a positive integer, or zero as t1 is before, after, or equal to t2 accounting for the specified granularity.the first time to compare. t1, long the second time to compare. t2, long the timestamp granularity. g)Compare two times. |
public boolean | Returns: true if the comparison result fell within the parameters of this TimeComparison.the first time to compare. t1, long the second time to compare. t2)Evaluate two times against this TimeComparison. |
public boolean | Returns: true if the comparison result fell within the parameters of this TimeComparison.the first time to compare. t1, long the second time to compare. t2, long the timestamp granularity. g)Evaluate two times against this TimeComparison. |
public String[] | Returns: String[] of EnumeratedAttribute values.Implements abstract org. |
AFTER | back to summary |
---|---|
public static final TimeComparison AFTER After Comparison. |
BEFORE | back to summary |
---|---|
public static final TimeComparison BEFORE Before Comparison. |
EQUAL | back to summary |
---|---|
public static final TimeComparison EQUAL Equal Comparison. |
FILE_UTILS | back to summary |
---|---|
private static final FileUtils FILE_UTILS |
VALUES | back to summary |
---|---|
private static final String[] VALUES |
TimeComparison | back to summary |
---|---|
public TimeComparison() Default constructor. |
TimeComparison | back to summary |
---|---|
public TimeComparison(String value) Construct a new TimeComparison with the specified value.
|
compare | back to summary |
---|---|
public static int compare(long t1, long t2) Compare two times.
|
compare | back to summary |
---|---|
public static int compare(long t1, long t2, long g) Compare two times.
|
evaluate | back to summary |
---|---|
public boolean evaluate(long t1, long t2) Evaluate two times against this TimeComparison.
|
evaluate | back to summary |
---|---|
public boolean evaluate(long t1, long t2, long g) Evaluate two times against this TimeComparison.
|
getValues | back to summary |
---|---|
public String[] getValues() Implements abstract org. Return the possible values.
|