Class Combiner
- java.lang.Object
-
- org.openjdk.jmc.flightrecorder.rules.jdk.combine.Combiner
-
public class Combiner extends java.lang.ObjectUtility class for combiningCombinableobjects.
-
-
Constructor Summary
Constructors Constructor Description Combiner()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T extends Combinable<T>>
intcombine(T[] objects)Combine an array ofCombinableobjects.
-
-
-
Method Detail
-
combine
public static <T extends Combinable<T>> int combine(T[] objects)
Combine an array ofCombinableobjects.- Type Parameters:
T- common combinable type of objects- Parameters:
objects- The objects to combine. This array will contain the combined objects on return.- Returns:
- the number of objects in the input array
objectsthat are valid after return
-
-