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

Method isYear

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

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

(
            final Calendar calendar,
            final int year
    )

Source from the content-addressed store, hash-verified

1216 * @return {@code true} yes, {@code false} no
1217 */
1218 public static boolean isYear(
1219 final Calendar calendar,
1220 final int year
1221 ) {
1222 return year != -1 && year == getYear(calendar);
1223 }
1224
1225 // =
1226

Callers

nothing calls this directly

Calls 3

getYearMethod · 0.95
getCalendarMethod · 0.95
parseLongMethod · 0.95

Tested by

no test coverage detected