@Override @SuppressWarnings( "unchecked" ) public <T extends IdentifiableObject> List<T> getById( Class<T> clazz, Collection<Integer> ids ) { IdentifiableObjectStore<IdentifiableObject> store = getIdentifiableObjectStore( clazz ); if ( store == null ) { return null; } return (List<T>) store.getById( ids ); }
@Override @SuppressWarnings( "unchecked" ) public <T extends IdentifiableObject> List<T> getObjects( Class<T> clazz, Collection<Integer> identifiers ) { IdentifiableObjectStore<T> store = (IdentifiableObjectStore<T>) getIdentifiableObjectStore( clazz ); if ( store == null ) { return new ArrayList<>(); } return store.getById( identifiers ); }