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