/** * A utility method that takes a list of DatedObjects-s and returns a list of the objects * * @param datedObjects List of objects * @return A list of the objects the datedobjects hold */ public static List getObjects(List datedObjects) { List result = new ArrayList(); if (datedObjects == null) { return result; } for (int i = 0; i < datedObjects.size(); i++) { result.add(((DatedObject) datedObjects.get(i)).getObject()); } return result; }