Class SpanLimit
- java.lang.Object
-
- org.openjdk.jmc.flightrecorder.rules.jdk.combine.SpanLimit
-
- All Implemented Interfaces:
Combinable<SpanLimit>
public class SpanLimit extends java.lang.Object implements Combinable<SpanLimit>
Combines the largest timespan where the average is still over the limit.
-
-
Constructor Summary
Constructors Constructor Description SpanLimit(long start, long end, double mass, double limit)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SpanLimitcombineWith(SpanLimit other)Combine this object with another object if it is possible and return a combined object.static SpanLimitgetMaxSpan(SpanLimit[] clusters)static SpanLimitgetMaxValue(SpanLimit[] clusters)java.lang.StringtoString()
-
-
-
Method Detail
-
combineWith
public SpanLimit combineWith(SpanLimit other)
Description copied from interface:CombinableCombine this object with another object if it is possible and return a combined object. This method may determine that it is not possible to combine the objects and returnnullin that case.- Specified by:
combineWithin interfaceCombinable<SpanLimit>- Parameters:
other- an object to combine this object with- Returns:
- a combined object, or
nullif the objects shouldn't be combined
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-