public class SpanSquare extends Object implements Combinable<SpanSquare>
Modifier and Type | Field and Description |
---|---|
double |
density |
long |
end |
long |
mass |
long |
start |
Constructor and Description |
---|
SpanSquare(long start,
long end) |
SpanSquare(long start,
long end,
long mass) |
Modifier and Type | Method and Description |
---|---|
SpanSquare |
combineWith(SpanSquare other)
Combine this object with another object if it is possible and return a combined object.
|
static SpanSquare |
getMax(SpanSquare[] clusters) |
String |
toString() |
public final long start
public final long end
public final long mass
public final double density
public SpanSquare(long start, long end)
public SpanSquare(long start, long end, long mass)
public SpanSquare combineWith(SpanSquare other)
Combinable
null
in that case.combineWith
in interface Combinable<SpanSquare>
other
- an object to combine this object withnull
if the objects shouldn't be combinedpublic static SpanSquare getMax(SpanSquare[] clusters)
Copyright © 2020. All rights reserved.