public static LocalDateInterval parseString ( final String input ) { String [ ] values = input . split ( "/" ) ; try { return new LocalDateInterval ( parseLocalDate ( values [ 0 ] ) , parseLocalDate ( values [ 1 ] ) , IntervalEnding . EXCLUDING_END_DATE ) ; } catch ( Exception e ) { throw new IllegalArgumentException ( "Unable to parse " + input ) ; } }
Parse a string representation of a LocalDateInterval