synchronized (avResults) { if (i < 0 || i >= avResults.length) throw new IllegalArgumentException("AllocationResult.getAspectType(int " + i + " not defined."); int type = avResults[i].getAspectType(); double value = avResults[i].getValue(); if (type == AspectType.START_TIME || type == AspectType.END_TIME) { Date d = new Date((long) value); return d.toString(); } else { return String.valueOf(value); }
if (i < 0 || i >= avResults.length) throw new IllegalArgumentException("AllocationResult.getAspectType(int " + i + " not defined."); int type = avResults[i].getAspectType(); double value = avResults[i].getValue(); if (type == AspectType.START_TIME || type == AspectType.END_TIME) { Date d = new Date((long) value); return d.toString(); } else { return String.valueOf(value);
  public String getResultFromArray(int i) {    synchronized (avResults) {      if (i < 0 || i >= avResults.length)        throw new IllegalArgumentException("AllocationResult.getAspectType(int " + i + " not defined.");      int type = avResults[i].getAspectType();      double value = avResults[i].getValue();      if (type == AspectType.START_TIME || 	  type == AspectType.END_TIME) {	Date d = new Date((long) value);	return d.toString();      } else {        return String.valueOf(value);      }    }  }