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

Method isWeek

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

是否对应星期 @param calendar Calendar @param week 待判断星期 @return true yes, false no

(
            final Calendar calendar,
            final int week
    )

Source from the content-addressed store, hash-verified

1507 * @return {@code true} yes, {@code false} no
1508 */
1509 public static boolean isWeek(
1510 final Calendar calendar,
1511 final int week
1512 ) {
1513 return week != -1 && week == getWeek(calendar);
1514 }
1515
1516 // =
1517

Callers

nothing calls this directly

Calls 3

getWeekMethod · 0.95
getCalendarMethod · 0.95
parseLongMethod · 0.95

Tested by

no test coverage detected