private static ImmutableMap < System , ImmutableList < DateTimeFormatter > > buildDateTimeFormatterMap ( ) { return ImmutableMap . of ( DEFAULT , ImmutableList . < DateTimeFormatter > builder ( ) . addAll ( defaultDateTimeFormatter ) // another common case . build ( ) , ORACLE , ImmutableList . < DateTimeFormatter > builder ( ) . addAll ( defaultDateTimeFormatter ) . add ( new DateTimeFormatterBuilder ( ) . parseCaseInsensitive ( ) . appendPattern ( "dd-MMM-yy[ hh[.][:]mm[.][:]ss[.][,][n][ a][ ZZZZZ][ VV]]" ) . toFormatter ( ) ) . add ( new DateTimeFormatterBuilder ( ) . parseCaseInsensitive ( ) . appendPattern ( "dd-MMM-yy[ HH[.][:]mm[.][:]ss[.][,][n][ ZZZZZ][ VV]]" ) . toFormatter ( ) ) . build ( ) , MSSQL , ImmutableList . < DateTimeFormatter > builder ( ) . addAll ( defaultDateTimeFormatter ) . add ( new DateTimeFormatterBuilder ( ) . parseCaseInsensitive ( ) . appendPattern ( "MMM dd yyyy[ hh:mm[a]]" ) . toFormatter ( ) ) . build ( ) ) ; }
special cases on different systems