public int compare(R o1, R o2) { long lhs = o1.getTimeInMillis(); long rhs = o2.getTimeInMillis(); if (lhs > rhs) return -1; if (lhs < rhs) return 1; return 0; } });
public boolean apply(int index, R r) { return start<=r.getTimeInMillis(); } }).filter(new Predicate<R>() {
public boolean apply(R r) { return r.getTimeInMillis()<end; } });
public int compare(@Nonnull Run lhs, @Nonnull Run rhs) { long lt = lhs.getTimeInMillis(); long rt = rhs.getTimeInMillis(); if(lt>rt) return -1; if(lt<rt) return 1; return 0; } };
private void record(Run<?,?> build, FilePath ws, TaskListener listener, Map<String,String> record, final String targets) throws IOException, InterruptedException { for (Record r : ws.act(new FindRecords(targets, build.getTimeInMillis()))) { Fingerprint fp = r.addRecord(build); if(fp==null) { listener.error(Messages.Fingerprinter_FailedFor(r.relativePath)); continue; } fp.addFor(build); record.put(r.relativePath,fp.getHashString()); } }
public int compare(R o1, R o2) { long lhs = o1.getTimeInMillis(); long rhs = o2.getTimeInMillis(); if (lhs > rhs) return -1; if (lhs < rhs) return 1; return 0; } });
public int compare(Run lhs, Run rhs) { long lt = lhs.getTimeInMillis(); long rt = rhs.getTimeInMillis(); if(lt>rt) return -1; if(lt<rt) return 1; return 0; } };
public int compare(Run lhs, Run rhs) { long lt = lhs.getTimeInMillis(); long rt = rhs.getTimeInMillis(); if (lt > rt) { return -1; } if (lt < rt) { return 1; } return 0; } };
public int compare(Run lhs, Run rhs) { long lt = lhs.getTimeInMillis(); long rt = rhs.getTimeInMillis(); if(lt>rt) return -1; if(lt<rt) return 1; return 0; } };
public boolean apply(int index, R r) { return start<=r.getTimeInMillis(); } }).filter(new Predicate<R>() {
public int compare(Run lhs, Run rhs) { long lt = lhs.getTimeInMillis(); long rt = rhs.getTimeInMillis(); if(lt>rt) return -1; if(lt<rt) return 1; return 0; } };
@Override public long getTimeInMillis() { return run.getTimeInMillis(); }
public boolean apply(R r) { return r.getTimeInMillis()<end; } });
public int compare(@Nonnull Run lhs, @Nonnull Run rhs) { long lt = lhs.getTimeInMillis(); long rt = rhs.getTimeInMillis(); if(lt>rt) return -1; if(lt<rt) return 1; return 0; } };
@Override public synchronized void putAll(Map<? extends Integer,? extends R> rhs) { // copy-on-write update TreeMap<Integer,R> m = new TreeMap<Integer,R>(builds); for (Map.Entry<? extends Integer,? extends R> e : rhs.entrySet()) { buildsTimeMap.put(e.getKey(), e.getValue().getTimeInMillis()); update(m, e.getKey(), e.getValue()); } this.builds = m; }
@Override public synchronized R put(Integer key, R value) { // copy-on-write update TreeMap<Integer,R> m = new TreeMap<Integer,R>(builds); buildsTimeMap.put(key, value.getTimeInMillis()); R r = update(m, key, value); this.builds = m; return r; }
@Override public synchronized void putAll(Map<? extends Integer,? extends R> rhs) { // copy-on-write update TreeMap<Integer,R> m = new TreeMap<Integer,R>(builds); for (Map.Entry<? extends Integer,? extends R> e : rhs.entrySet()) { buildsTimeMap.put(e.getKey(), e.getValue().getTimeInMillis()); update(m, e.getKey(), e.getValue()); } this.builds = m; }
@Override public synchronized R put(Integer key, R value) { // copy-on-write update TreeMap<Integer,R> m = new TreeMap<Integer,R>(builds); buildsTimeMap.put(key, value.getTimeInMillis()); R r = update(m, key, value); this.builds = m; return r; }
@Override public synchronized void putAll(Map<? extends Integer,? extends R> rhs) { // copy-on-write update TreeMap<Integer,R> m = new TreeMap<Integer,R>(builds); for (Map.Entry<? extends Integer,? extends R> e : rhs.entrySet()) { buildsTimeMap.put(e.getKey(), e.getValue().getTimeInMillis()); update(m, e.getKey(), e.getValue()); } this.builds = m; }
@Override public synchronized R put(Integer key, R value) { // copy-on-write update TreeMap<Integer,R> m = new TreeMap<Integer,R>(builds); buildsTimeMap.put(key, value.getTimeInMillis()); R r = update(m, key, value); this.builds = m; return r; }