You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
361 B
26 lines
361 B
10 years ago
|
package mightypork.utils.math.constraints;
|
||
|
|
||
|
|
||
|
/**
|
||
|
* Constant number {@link NumberConstraint}
|
||
|
*
|
||
|
* @author MightyPork
|
||
|
*/
|
||
|
public class FixedNumberConstraint implements NumberConstraint {
|
||
|
|
||
|
private final double value;
|
||
|
|
||
|
|
||
|
public FixedNumberConstraint(double value) {
|
||
|
this.value = value;
|
||
|
}
|
||
|
|
||
|
|
||
|
@Override
|
||
|
public double getValue()
|
||
|
{
|
||
|
return value;
|
||
|
}
|
||
|
|
||
|
}
|