Advertisement
Guest User

Untitled

a guest
Feb 20th, 2013
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.01 KB | None | 0 0
  1.   public final List<Double> fctAmeliorable() {
  2.     List<Double> locDbValueList = new LinkedList<Double>();
  3.     for (int i = 0; i < 50000; ++i) {
  4.       Calendar locMyCalendar = new GregorianCalendar();
  5.       locDbValueList.add(getNewDbValue(locMyCalendar.get(Calendar.YEAR), i));
  6.     }
  7.     updateList(locDbValueList);
  8.     Integer locResult = 0;
  9.     for (int i = 0; i < locDbValueList.size(); ++i) {
  10.       final Integer locTempVal = doOperation(locDbValueList.get(i));
  11.       if (locTempVal != null) {
  12.         locResult += locTempVal;
  13.       }
  14.     }
  15.     applyResult(locResult);
  16.     return locDbValueList;
  17.   }
  18.  
  19.   private Double getNewDbValue(int parYear, int parIdx) { ? }
  20.  
  21.   private void updateList(List<Double> valList) { ? } // Modifie valeurs (mais pas la taille) de liste donnée en paramètre
  22.  
  23.   private int doOperation (Double parDbRefValue) { ? }
  24.  
  25.   private void applyResult (int parIntValue) { ? } // Applique un traitement en fonction du paramètre
  26.  
  27.   public final List<Double> fctAmeliorable() {
  28.  
  29.   }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement