MCPcopy Create free account
hub / github.com/MenoData/Time4J / max

Method max

base/src/main/java/net/time4j/engine/TimePoint.java:586–593  ·  view source on GitHub ↗
(
        T t1,
        T t2
    )

Source from the content-addressed store, hash-verified

584 * @return maximum of t1 and t2
585 */
586 public static <U, T extends TimePoint<U, T>> T max(
587 T t1,
588 T t2
589 ) {
590
591 return (t1.compareTo(t2) > 0) ? t1 : t2;
592
593 }
594
595 /**
596 * <p>Compares the whole state of this instance with given object. </p>

Callers 15

maxMethod · 0.95
maxMethod · 0.95
getDSTSavingsMethod · 0.45
parseMethod · 0.45
atOrAfterMethod · 0.45
getLeapMonthMethod · 0.45
parseMethod · 0.45
atTimeMethod · 0.45
insertMethod · 0.45
leftRotateMethod · 0.45
rightRotateMethod · 0.45
hasSecondOffsetMethod · 0.45

Calls 1

compareToMethod · 0.45

Tested by 2

maxMethod · 0.76
maxMethod · 0.76