src/main/java/org/semgus/java/event/EventParser.java
public static List<SpecEvent> parseEvents(List<JSONObject> eventsDto) throws DeserializationException {
        SpecEvent[] events = new SpecEvent[eventsDto.size()];
        for (int i = 0; i < events.length; i++) {
            try {
                events[i] = parseEvent(eventsDto.get(i));
            } catch (DeserializationException e) {
                throw e.prepend(i);
            }
        }
        return Arrays.asList(events);
    }
/**
     * Deserializes a list of JSON objects as parser events.
     *
     * @param eventsDto The parser event objects.
     * @return The deserialized parser events.
     * @throws DeserializationException If an element of {@code eventsDto} is not a valid parser event.
     */
Deserializes a list of JSON objects as parser events.
@param eventsDto The parser event objects.
@return The deserialized parser events.
@throws DeserializationException If an element of  eventsDto is not a valid parser event.
Deserializes a list of JSON objects as parser events . @param eventsDto The parser event objects . @return The deserialized parser events . @throws DeserializationException If an element of eventsDto is not a valid parser event .
public static List<SpecEvent> parseEvents(List<JSONObject> eventsDto) throws DeserializationException {
        SpecEvent[] events = new SpecEvent[eventsDto.size()];
        for (int i = 0; i < events.length; i++) {
            try {
                events[i] = parseEvent(eventsDto.get(i));
            } catch (DeserializationException e) {
                throw e.prepend(i);
            }
        }
        return Arrays.asList(events);
    }
public static List < SpecEvent > parseEvents ( List < JSONObject > eventsDto ) throws DeserializationException { SpecEvent [ ] events = new SpecEvent [ eventsDto . size ( ) ] ; for ( int i = 0 ; i < events . length ; i ++ ) { try { events [ i ] = parseEvent ( eventsDto . get ( i ) ) ; } catch ( DeserializationException e ) { throw e . prepend ( i ) ; } } return Arrays . asList ( events ) ; }
Deserializes a list of JSON objects as parser events.
Deserializes a list of JSON objects as parser events .