new inference: cache substitutor for outer call conflict resolution

This commit is contained in:
Anna Kozlova
2014-03-07 18:02:48 +01:00
parent a5adf26660
commit dccb826526
9 changed files with 164 additions and 74 deletions
@@ -13,12 +13,12 @@ class SortedOp<T> implements StatefulOp<T, T> {
}
}
class Usage<T> {
public <E, S extends BaseStream<E>> S pipeline(IntermediateOp<T, E> newOp) { return null; }
public <R> R pipeline(TerminalOp<T, R> terminal) { return null;}
class Usage<Ts> {
public <E, S extends BaseStream<E>> S pipeline(IntermediateOp<Ts, E> newOp) { return null; }
public <R> R pipeline(TerminalOp<Ts, R> terminal) { return null;}
public Stream<T> sorted(Comparator<? super T> comparator) {
public Stream<Ts> sorted(Comparator<? super Ts> comparator) {
return pipeline(new SortedOp<>(comparator));
}
}