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

Method isValid

base/src/main/java/net/time4j/Weekmodel.java:1851–1869  ·  view source on GitHub ↗
(
            T context,
            Integer value
        )

Source from the content-addressed store, hash-verified

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(

Callers 1

withValueMethod · 0.95

Calls 3

getMinWeekMethod · 0.95
getMaxWeekMethod · 0.95
getMethod · 0.65

Tested by

no test coverage detected