@Test public void testYearFreqPosParser() { Parsers.Parser<Date> parser = StrangeParsers.yearFreqPosParser(); Assert.assertEquals(D_2010_01_01, parser.parse("2010M1")); Assert.assertEquals(D_2010_01_01, parser.parse("2010-M1")); Assert.assertEquals(D_2010_02_01, parser.parse("2010M2")); Assert.assertEquals(D_2010_02_01, parser.parse("2010-M2")); Assert.assertEquals(D_2010_01_01, parser.parse("2010Q1")); Assert.assertEquals(D_2010_01_01, parser.parse("2010-Q1")); Assert.assertNull(parser.parse("1234")); }
public static Parsers.@NonNull Parser<Date> yearFreqPosParser() { return YearFreqPosParser.INSTANCE; }
StrangeParsers { public static Parsers.@NonNull Parser<Date> yearFreqPosParser() { return YearFreqPosParser.INSTANCE; } }
StrangeParsers { public static Parsers.@NonNull Parser<Date> yearFreqPosParser() { return YearFreqPosParser.INSTANCE; } private  StrangeParsers(); }
StrangeParsers { public static Parsers.@NonNull Parser<Date> yearFreqPosParser() { return YearFreqPosParser.INSTANCE; } private  StrangeParsers(); static Parsers.@NonNull Parser<Date> yearFreqPosParser(); @Deprecated static Parsers.@NonNull Parser<Number> onDoubleValueOf(); @Deprecated static Parsers.@NonNull Parser<Number> onIntegerValueOf(); }
StrangeParsers { public static Parsers.@NonNull Parser<Date> yearFreqPosParser() { return YearFreqPosParser.INSTANCE; } private  StrangeParsers(); static Parsers.@NonNull Parser<Date> yearFreqPosParser(); @Deprecated static Parsers.@NonNull Parser<Number> onDoubleValueOf(); @Deprecated static Parsers.@NonNull Parser<Number> onIntegerValueOf();  }