MCPcopy Create free account
hub / github.com/afkT/DevUtils / isHour

Method isHour

lib/DevApp/src/main/java/dev/utils/common/DateUtils.java:1606–1611  ·  view source on GitHub ↗

是否对应小时 @param calendar Calendar @param hour 待判断小时 @return true yes, false no

(
            final Calendar calendar,
            final int hour
    )

Source from the content-addressed store, hash-verified

1604 * @return {@code true} yes, {@code false} no
1605 */
1606 public static boolean isHour(
1607 final Calendar calendar,
1608 final int hour
1609 ) {
1610 return hour != -1 && hour == get24Hour(calendar);
1611 }
1612
1613 // =
1614

Callers

nothing calls this directly

Calls 3

get24HourMethod · 0.95
getCalendarMethod · 0.95
parseLongMethod · 0.95

Tested by

no test coverage detected