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.
37 lines
527 B
37 lines
527 B
10 years ago
|
package mightypork.utils.math.constraints.vect.caching;
|
||
|
|
||
|
|
||
|
import mightypork.utils.annotations.DefaultImpl;
|
||
|
import mightypork.utils.math.constraints.vect.Vect;
|
||
|
|
||
|
|
||
|
/**
|
||
|
* Vect cache implementation
|
||
|
*
|
||
|
* @author MightyPork
|
||
|
*/
|
||
|
public class VectCache extends AbstractVectCache {
|
||
|
|
||
|
private final Vect source;
|
||
|
|
||
|
|
||
|
public VectCache(Vect source) {
|
||
|
this.source = source;
|
||
|
enableDigestCaching(true);
|
||
|
}
|
||
|
|
||
|
|
||
|
@Override
|
||
|
public Vect getCacheSource()
|
||
|
{
|
||
|
return source;
|
||
|
}
|
||
|
|
||
|
|
||
|
@Override
|
||
|
@DefaultImpl
|
||
|
public void onChange()
|
||
|
{
|
||
|
}
|
||
|
}
|