Class DisjointBuilder<T>
- java.lang.Object
-
- org.openjdk.jmc.flightrecorder.internal.util.DisjointBuilder<T>
-
public class DisjointBuilder<T> extends java.lang.ObjectAn object collector used to place ranged objects in multiple arrays, where the objects in each array are sorted and disjunct
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceDisjointBuilder.ArrayFactory<U>
-
Constructor Summary
Constructors Constructor Description DisjointBuilder(IMemberAccessor<IQuantity,? super T> startAccessor, IMemberAccessor<IQuantity,? super T> endAccessor)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(T e)static <U> java.util.Collection<U[]>toArrays(java.lang.Iterable<? extends DisjointBuilder<U>> collections, DisjointBuilder.ArrayFactory<U> arrayFactory)
-
-
-
Constructor Detail
-
DisjointBuilder
public DisjointBuilder(IMemberAccessor<IQuantity,? super T> startAccessor, IMemberAccessor<IQuantity,? super T> endAccessor)
-
-
Method Detail
-
add
public void add(T e)
-
toArrays
public static <U> java.util.Collection<U[]> toArrays(java.lang.Iterable<? extends DisjointBuilder<U>> collections, DisjointBuilder.ArrayFactory<U> arrayFactory)
-
-