@SuppressWarnings("unchecked") @Override public <T> Collection<T> getAllEntitiesForType(Class<T> type) { if (packStopTimes && type.equals(StopTime.class)) { return (Collection<T>) stopTimes; } else if (packShapePoints && type.equals(ShapePoint.class)) { return (Collection<T>) shapePoints; } return super.getAllEntitiesForType(type); }
@SuppressWarnings("unchecked") @Override public <T> Collection<T> getAllEntitiesForType(Class<T> type) { if (packStopTimes && type.equals(StopTime.class)) { return (Collection<T>) stopTimes; } else if (packShapePoints && type.equals(ShapePoint.class)) { return (Collection<T>) shapePoints; } return super.getAllEntitiesForType(type); }