@Test public void testParseDate() throws ParseException { org.junit.Assert.assertEquals(new PointInTime(1996, 3, 11), VPRDateTimeFormat.parse("19960311")); }
public static PointInTime parse(String text) { if (text == null) return null; if (text.isEmpty()) return null; if (text.length() != VPR_DATE_LENGTH) { throw new IllegalArgumentException( "VPR date time '" + text + "' must be 8 characters long."); } return pointInTimeParser().parsePointInTime(text); }
VPRDateTimeFormat { public static PointInTime parse(String text) { if (text == null) return null; if (text.isEmpty()) return null; if (text.length() != VPR_DATE_LENGTH) { throw new IllegalArgumentException( "VPR date time '" + text + "' must be 8 characters long."); } return pointInTimeParser().parsePointInTime(text); } }
VPRDateTimeFormat { public static PointInTime parse(String text) { if (text == null) return null; if (text.isEmpty()) return null; if (text.length() != VPR_DATE_LENGTH) { throw new IllegalArgumentException( "VPR date time '" + text + "' must be 8 characters long."); } return pointInTimeParser().parsePointInTime(text); } protected  VPRDateTimeFormat(); }
VPRDateTimeFormat { public static PointInTime parse(String text) { if (text == null) return null; if (text.isEmpty()) return null; if (text.length() != VPR_DATE_LENGTH) { throw new IllegalArgumentException( "VPR date time '" + text + "' must be 8 characters long."); } return pointInTimeParser().parsePointInTime(text); } protected  VPRDateTimeFormat(); static DateTimeFormatter date(); static PointInTimeFormatter pointInTimeParser(); static PointInTime parse(String text); static PointInTime toPointInTime(String text); }
VPRDateTimeFormat { public static PointInTime parse(String text) { if (text == null) return null; if (text.isEmpty()) return null; if (text.length() != VPR_DATE_LENGTH) { throw new IllegalArgumentException( "VPR date time '" + text + "' must be 8 characters long."); } return pointInTimeParser().parsePointInTime(text); } protected  VPRDateTimeFormat(); static DateTimeFormatter date(); static PointInTimeFormatter pointInTimeParser(); static PointInTime parse(String text); static PointInTime toPointInTime(String text);  }