public List < T > findAll ( ) { if ( cache && cachedObjects != null ) { return cachedObjects ; } List < String > ids = getObjectList ( ) ; List < T > listT = new ArrayList <> ( ) ; for ( String id : ids ) { listT . add ( find ( id ) ) ; } if ( cache ) { cachedObjects = listT ; } return listT ; }
Find all objects of type T .