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

Method isMonth

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

是否对应月份 @param calendar Calendar @param month 待判断月份 @return true yes, false no

(
            final Calendar calendar,
            final int month
    )

Source from the content-addressed store, hash-verified

1313 * @return {@code true} yes, {@code false} no
1314 */
1315 public static boolean isMonth(
1316 final Calendar calendar,
1317 final int month
1318 ) {
1319 return month != -1 && month == getMonth(calendar);
1320 }
1321
1322 // =
1323

Callers

nothing calls this directly

Calls 3

getMonthMethod · 0.95
getCalendarMethod · 0.95
parseLongMethod · 0.95

Tested by

no test coverage detected