Package me.datafox.dfxengine.values.api
Interface Modifier
- All Superinterfaces:
Comparable<Modifier>,Dependency,Dependent,Function<Numeral,Numeral>
- All Known Implementing Classes:
AbstractModifier,MappingOperationModifier,OperationModifier
public interface Modifier
extends Dependent, Dependency, Function<Numeral,Numeral>, Comparable<Modifier>
A Modifier represents a math operation that can be attached to a
Value or a ValueMap. When calling
Value.getValue(), the base numeral of that value will be processed through all modifiers associated with the
value, in the order specified by getPriority(). The operation is specified by implementing
Function.apply(Object).-
Method Summary
Methods inherited from interface me.datafox.dfxengine.dependencies.Dependency
addDependent, addDependents, containsDependent, containsDependentRecursive, containsDependents, containsDependentsRecursive, dependentStream, getDependents, invalidateDependents, recursiveDependentStream, removeDependent, removeDependentsMethods inherited from interface me.datafox.dfxengine.dependencies.Dependent
invalidate
-
Method Details
-
getPriority
int getPriority()- Returns:
- priority of this modifier
-
compareTo
- Specified by:
compareToin interfaceComparable<Modifier>- Parameters:
other- modifier to be compared- Returns:
- a negative integer, zero, or a positive integer as this modifier's priority is less than, equal to, or greater than the specified modifier's priority
-