Specification2
Optional extension to the base Specification , to allow for i18n.
If implemented, then the #satisfies(Object) inherited from Specification can just return null
; it will never be called by the framework.
API
Specification2.java
interface Specification2 {
TranslatableString satisfiesTranslatable(Object obj) (1)
}
1 | satisfiesTranslatable(Object)
If |
Members
satisfiesTranslatable(Object)
If null
then satisfied, otherwise is the reason (as a TranslatableString translatable string) as to why the specification is not satisfied.