src/main/java/walkingkooka/datetime/YearContext.java
/**
     * Accepts a two digit year, and using {@link #twoDigitYear()} returns a four digit yar.
     */
Accepts a two digit year, and using  #twoDigitYear() returns a four digit yar.
Accepts a two digit year and using #twoDigitYear () returns a four digit yar .
default int twoToFourDigitYear(final int year) {
        if(year < 0 || year >= 100) {
            throw new IllegalArgumentException("Invalid two digit year " + year + " expected between 0 and 100");
        }
        return year +
                (year < this.twoDigitYear() ?
                        2000 :
                        1900);
    }
default int twoToFourDigitYear ( final int year ) { if ( year < 0 || year >= 100 ) { throw new IllegalArgumentException ( "Invalid two digit year " + year + " expected between 0 and 100" ) ; } return year + ( year < this . twoDigitYear ( ) ? 2000 : 1900 ) ; }
Accepts a two digit year, and using {@link #twoDigitYear()} returns a four digit yar.
Accepts a two digit year and using { @link #twoDigitYear () } returns a four digit yar .