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

Method isSecond

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

是否对应秒数 @param calendar Calendar @param second 待判断秒数 @return true yes, false no

(
            final Calendar calendar,
            final int second
    )

Source from the content-addressed store, hash-verified

1798 * @return {@code true} yes, {@code false} no
1799 */
1800 public static boolean isSecond(
1801 final Calendar calendar,
1802 final int second
1803 ) {
1804 return second != -1 && second == getSecond(calendar);
1805 }
1806
1807 // =
1808

Callers

nothing calls this directly

Calls 3

getSecondMethod · 0.95
getCalendarMethod · 0.95
parseLongMethod · 0.95

Tested by

no test coverage detected