int function ( List < T > arg0 , int arg1 , int arg2 ) { int loc0 = 0 ; for ( T loc1 : arg0 ) { if ( loc1 . getCloudletId ( ) == arg1 && loc1 . getUserId ( ) == arg2 ) { return loc0 ; } loc0 ++ ; } return - 1 ; }
finds the index of a cloudlet inside the list . this method needs a combination of cloudlet id and user id because each cloud user might have exactly the same cloudlet id . concode_field_sep PlaceHolder placeHolder concode_field_sep ResCloudlet getByIdAndUserId concode_elem_sep boolean move concode_elem_sep int getPositionById