Bir Stream<T>
uygulamak istiyorum.Java akışı nasıl uygulanır?
implements Stream<T>
kullanmak istemiyorum, çünkü bir ton yöntem uygulamak zorundayım.
Bu önlenebilir mi?
Ben meselat1
,
t2
ve
t3
akışı nasıl, daha somut olmak gerekirse:
class Foo<T> {
T t1, t2, t3;
Foo(T t1, T t2, T t3) {
this.t1 = t1;
this.t2 = t2;
this.t3 = t3;
}
}
'Stream.of (t1 bilmemiz gerekir gibi bulmak zor biraz bulundu , t2, t3). –
['Stream.builder'] (https://docs.oracle.com/javase/8/docs/api/java/util/stream/Stream.html#builder--) – fabian