是否对应年份 @param calendar Calendar @param year 待判断年份 @return true yes, false no
(
final Calendar calendar,
final int year
)
| 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 |
nothing calls this directly
no test coverage detected