Toggle navigation
Home
java.util.List to org.jooq.lambda.Partition
No. of Instances - 139
No. of Commits - 1
No. of Projects - {'jOOL'}
Hierarchy/Composition: -
Primitive Info: -
NameSpace: Jdk -> Internal
Mapping:
Cascading Type Change (Similar)
TreeSet<>
to
TreeSet<Tuple2<T,Long>>
Add or Remove Method invocation
Collector.<Tuple2<T,Long>,Collection<Tuple2<T,Long>>,List<Tuple2<T,Long>>>of(() -> window.order().isPresent() ? new TreeSet<Tuple2<T,Long>>(comparing((Tuple2<T,Long> t) -> t.v1,window.order().get()).thenComparing(t -> t.v2)) : new ArrayList<>(),(s,t) -> s.add(t),(s1,s2) -> { s1.addAll(s2); return s1; } ,s -> s instanceof ArrayList ? (List<Tuple2<T,Long>>)s : new ArrayList<>(s))
to
Collector.of(() -> window.order().isPresent() ? new TreeSet<Tuple2<T,Long>>(comparing((Tuple2<T,Long> t) -> t.v1,window.order().get()).thenComparing(t -> t.v2)) : new ArrayList<Tuple2<T,Long>>(),(s,t) -> s.add(t),(s1,s2) -> { s1.addAll(s2); return s1; } ,s -> new Partition<>(s instanceof ArrayList ? (List<Tuple2<T,Long>>)s : new ArrayList<>(s)))