Collection of useful utilities for Java games and apps. A lot of interesting utilities that could maybe still find some use if you work with Java...
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.
mightyutils/src/mightypork/utils/math/constraints/Digestable.java

20 lines
391 B

package mightypork.utils.math.constraints;
/**
* COnstraint that can be converted to a digest, representing current state
*
* @author Ondřej Hruška (MightyPork)
* @param <D>
*/
public interface Digestable<D> {
/**
* Take a digest. If digest caching is enabled and the cached digest is
* marked as dirty, a new one should be made.
*
* @return digest
*/
D digest();
}