(
T context,
Integer value
)
| 1849 | } |
| 1850 | |
| 1851 | @Override |
| 1852 | public boolean isValid( |
| 1853 | T context, |
| 1854 | Integer value |
| 1855 | ) { |
| 1856 | |
| 1857 | if (value == null) { |
| 1858 | return false; |
| 1859 | } |
| 1860 | |
| 1861 | int v = value.intValue(); |
| 1862 | PlainDate date = context.get(CALENDAR_DATE); |
| 1863 | |
| 1864 | return ( |
| 1865 | (v >= this.getMinWeek(date)) |
| 1866 | && (v <= this.getMaxWeek(date)) |
| 1867 | ); |
| 1868 | |
| 1869 | } |
| 1870 | |
| 1871 | @Override |
| 1872 | public T withValue( |
no test coverage detected