/** Updates the second collection with values from the first one. * If there is a multiple occurrence of an object in the first collection * a Dupl for the object is created to encapsulate it. */ public final void updateList(Collection<? extends T> src, Collection<? super Dupl<T>> target) { java.util.Map<T,Object> map = new HashMap<T,Object>(src.size() * 2); for (T o : src) { updateListAndMap(o, target, map); } }
/** Updates the second collection with values from the first array. * If there is a multiple occurrence of an object in the first array * a Dupl for the object is created to encapsulate it. */ public final void updateList(T[] arr, Collection<? super Dupl<T>> target) { java.util.Map<T,Object> map = new HashMap<T,Object>(arr.length * 2); for (T o : arr) { updateListAndMap(o, target, map); } }
/** Updates the second collection with values from the first one. * If there is a multiple occurence of an object in the first collection * a Dupl for the object is created to encapsulate it. */ public final void updateList ( java.util.Collection src, java.util.Collection target ) { java.util.Map map = new java.util.HashMap (src.size () * 2); Iterator it = src.iterator (); while (it.hasNext ()) { Object o = it.next (); updateListAndMap (o, target, map); } }
/** Updates the second collection with values from the first one. * If there is a multiple occurence of an object in the first collection * a Dupl for the object is created to encapsulate it. */ public final void updateList ( java.util.Collection src, java.util.Collection target ) { java.util.Map map = new java.util.HashMap (src.size () * 2); Iterator it = src.iterator (); while (it.hasNext ()) { Object o = it.next (); updateListAndMap (o, target, map); } }
/** Updates the second collection with values from the first array. * If there is a multiple occurence of an object in the first array * a Dupl for the object is created to encapsulate it. */ public final void updateList ( Object[] arr, java.util.Collection target ) { java.util.Map map = new java.util.HashMap (arr.length * 2); for (int i = 0; i < arr.length; i++) { updateListAndMap (arr[i], target, map); } }
/** Updates the second collection with values from the first array. * If there is a multiple occurence of an object in the first array * a Dupl for the object is created to encapsulate it. */ public final void updateList ( Object[] arr, java.util.Collection target ) { java.util.Map map = new java.util.HashMap (arr.length * 2); for (int i = 0; i < arr.length; i++) { updateListAndMap (arr[i], target, map); } }