toggle menu
moonlight
1.0-SNAPSHOT
jvm
switch theme
search in API
engine
/
io.github.moonlightsuite.moonlight.domain
/
IntegerDomain
Integer
Domain
public
class
IntegerDomain
implements
DistanceDomain
<
M
>
Members
Constructors
Integer
Domain
Link copied to clipboard
public
void
IntegerDomain
(
)
Functions
equal
To
Link copied to clipboard
public
boolean
equalTo
(
Integer
x
,
Integer
y
)
Tells whether the first distance is equivalent to the second
infinity
Link copied to clipboard
public
Integer
infinity
(
)
Maximal allowed distance
less
Link copied to clipboard
public
boolean
less
(
Integer
x
,
Integer
y
)
Tells whether the first distance is smaller than the second
less
Or
Equal
Link copied to clipboard
public
boolean
lessOrEqual
(
Integer
x
,
Integer
y
)
Tells whether the first distance is smaller or equal to the second.
multiply
Link copied to clipboard
public
Integer
multiply
(
Integer
x
,
int factor
)
Method to combine the metric `x`, `factor` times
sum
Link copied to clipboard
public
Integer
sum
(
Integer
x
,
Integer
y
)
Method to combine two distances
zero
Link copied to clipboard
public
Integer
zero
(
)
Minimal allowed distance