(int month)
| 1930 | } |
| 1931 | |
| 1932 | private PlainDate withMonth(int month) { |
| 1933 | |
| 1934 | if (this.month == month) { |
| 1935 | return this; |
| 1936 | } |
| 1937 | |
| 1938 | int mlen = GregorianMath.getLengthOfMonth(this.year, month); |
| 1939 | |
| 1940 | return PlainDate.of( |
| 1941 | this.year, |
| 1942 | month, |
| 1943 | Math.min(mlen, this.dayOfMonth) |
| 1944 | ); |
| 1945 | |
| 1946 | } |
| 1947 | |
| 1948 | private PlainDate withDayOfMonth(int dayOfMonth) { |
| 1949 |
no test coverage detected