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.
36 lines
499 B
36 lines
499 B
package mightypork.gamecore.util.math.constraints.num.proxy;
|
|
|
|
|
|
import mightypork.gamecore.util.math.constraints.num.Num;
|
|
|
|
|
|
public class NumBoundAdapter extends NumAdapter implements PluggableNumBound {
|
|
|
|
private NumBound backing = null;
|
|
|
|
|
|
public NumBoundAdapter()
|
|
{
|
|
}
|
|
|
|
|
|
public NumBoundAdapter(NumBound bound)
|
|
{
|
|
backing = bound;
|
|
}
|
|
|
|
|
|
@Override
|
|
public void setNum(NumBound num)
|
|
{
|
|
this.backing = num;
|
|
}
|
|
|
|
|
|
@Override
|
|
protected Num getSource()
|
|
{
|
|
return backing.getNum();
|
|
}
|
|
|
|
}
|
|
|