public class TimecodeComparator extends Object implements Comparator<Timecode>
| Constructor and Description |
|---|
TimecodeComparator() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
between(Timecode test,
Timecode start,
Timecode end)
Returns true if
test is between start and end (inclusive) |
static int |
cmp(Timecode a,
Timecode b) |
int |
compare(Timecode a,
Timecode b) |
static boolean |
eq(Timecode a,
Timecode b) |
static boolean |
ge(Timecode a,
Timecode b) |
static TimecodeComparator |
getInstance() |
static boolean |
gt(Timecode a,
Timecode b) |
static boolean |
le(Timecode a,
Timecode b) |
static boolean |
lt(Timecode a,
Timecode b) |
static Timecode |
max(Timecode... timecodes)
Returns the larger of a number of timecodes
|
static Timecode |
min(Timecode... timecodes)
Returns the smaller of some timecodes
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcomparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongpublic static TimecodeComparator getInstance()
public int compare(Timecode a, Timecode b)
compare in interface Comparator<Timecode>public static boolean between(Timecode test, Timecode start, Timecode end)
test is between start and end (inclusive)test - start - end - public static Timecode max(Timecode... timecodes)
timecodes - some timecodesCopyright © 2016. All rights reserved.