Class DisjointBuilder<T>
- java.lang.Object
-
- org.openjdk.jmc.flightrecorder.internal.util.DisjointBuilder<T>
-
public class DisjointBuilder<T> extends Object
An 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 interface
DisjointBuilder.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 void
add(T e)
static <U> Collection<U[]>
toArrays(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> Collection<U[]> toArrays(Iterable<? extends DisjointBuilder<U>> collections, DisjointBuilder.ArrayFactory<U> arrayFactory)
-
-