Method
isValid
(
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
Tested by
no test coverage detected