protected Collection < InternalType > getObjectInstances ( ModeledAuthenticatedUser currentUser , Collection < ModelType > models ) throws GuacamoleException { // Create new collection of objects by manually converting each model Collection < InternalType > objects = new ArrayList < InternalType > ( models . size ( ) ) ; for ( ModelType model : models ) objects . ( getObjectInstance ( currentUser , model ) ) ; return objects ; }
Returns a collection of objects which are backed by the models in the given collection .