protected List < HalResource < ? > > resolveCachedLinks ( String [ ] linkedIds , Cache cache , List < String > notCachedLinkedIds ) { ArrayList < HalResource < ? > > resolvedResources = new ArrayList < HalResource < ? > > ( ) ; for ( String linkedId : linkedIds ) { HalResource < ? > resource = ( HalResource < ? > ) cache . get ( linkedId ) ; if ( resource != null ) { resolvedResources . add ( resource ) ; } else { notCachedLinkedIds . add ( linkedId ) ; } } return resolvedResources ; }
Returns a list with all resources which are cached .