mirror of
https://github.com/Minestom/Minestom.git
synced 2024-06-23 04:54:59 +02:00
21 lines
429 B
Java
21 lines
429 B
Java
package net.minestom.server.utils.math;
|
|
|
|
public class IntRange extends Range<Integer> {
|
|
|
|
public IntRange(Integer minimum, Integer maximum) {
|
|
super(minimum, maximum);
|
|
}
|
|
|
|
public IntRange(Integer value) {
|
|
super(value);
|
|
}
|
|
|
|
/**
|
|
* {@inheritDoc}
|
|
*/
|
|
@Override
|
|
public boolean isInRange(Integer value) {
|
|
return value >= this.getMinimum() && value <= this.getMaximum();
|
|
}
|
|
}
|