MCPcopy Create free account
hub / github.com/MenoData/Time4J / isValid

Method isValid

base/src/main/java/net/time4j/Weekmodel.java:1256–1273  ·  view source on GitHub ↗
(
            T context,
            Weekday value
        )

Source from the content-addressed store, hash-verified

1254 }
1255
1256 @Override
1257 public boolean isValid(
1258 T context,
1259 Weekday value
1260 ) {
1261
1262 if (value == null) {
1263 return false;
1264 }
1265
1266 try {
1267 this.withValue(context, value, false);
1268 return true;
1269 } catch (ArithmeticException | IllegalArgumentException ex) {
1270 return false;
1271 }
1272
1273 }
1274
1275 @Override
1276 public T withValue(

Callers

nothing calls this directly

Calls 1

withValueMethod · 0.95

Tested by

no test coverage detected