Package com.Ostermiller.util
Class YearExtensionNone
java.lang.Object
com.Ostermiller.util.YearExtensionNone
- All Implemented Interfaces:
YearExtensionPolicy
Null object for year extension policy.
- Since:
- ostermillerutils 1.08.00
- Author:
- Stephen Ostermiller https://ostermiller.org/contact.pl?regarding=Java+Utilities
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final YearExtensionNoneSingleton instance of no year extension policy -
Method Summary
-
Field Details
-
YEAR_EXTEND_NONE
Singleton instance of no year extension policy
-
-
Method Details
-
extendYear
public int extendYear(int twoDigitYear) Does NOT extend the year.- Specified by:
extendYearin interfaceYearExtensionPolicy- Parameters:
twoDigitYear- year from 0 to 99- Returns:
- a two digit year unaltered.
- Since:
- ostermillerutils 1.08.00
-