Constructor and Description |
---|
Split(T minus,
T plus)
Build a new instance from its parts.
|
Modifier and Type | Method and Description |
---|---|
SplitLocation |
getLocation()
Get the location of the object with respect to its splitting
hyperplane.
|
T |
getMinus()
Get the part of the object lying on the minus side of the splitting
hyperplane or null if no such part exists.
|
T |
getPlus()
Get the part of the object lying on the plus side of the splitting
hyperplane or null if no such part exists.
|
String |
toString() |
public Split(T minus, T plus)
minus
- part of the object lying on the minus side of the
splitting hyperplane or null if no such part existsplus
- part of the object lying on the plus side of the
splitting hyperplane or null if no such part exists.public T getMinus()
public T getPlus()
public SplitLocation getLocation()
SplitLocation.PLUS
- if only getPlus()
is not nullSplitLocation.MINUS
- if only getMinus()
is not nullSplitLocation.BOTH
- if both getPlus()
and getMinus()
are not nullSplitLocation.NEITHER
- if both getPlus()
and getMinus()
are nullCopyright © 2016–2021 The Apache Software Foundation. All rights reserved.