Class ItemModelExistsPredicate

  • All Implemented Interfaces:
    java.util.function.BiPredicate<java.lang.String,​java.lang.Class<?>>

    public class ItemModelExistsPredicate
    extends java.lang.Object
    implements java.util.function.BiPredicate<java.lang.String,​java.lang.Class<?>>
    Predicate to test if a given unique item identifier maps to an existing item model. It uses the UniqueItemIdentifierService to find the item model associated to the given composite key.

    Returns TRUE if the item model exists; FALSE otherwise.

    • Constructor Detail

      • ItemModelExistsPredicate

        public ItemModelExistsPredicate()
    • Method Detail

      • test

        public boolean test​(java.lang.String compositeKey,
                            java.lang.Class<?> classType)
        Specified by:
        test in interface java.util.function.BiPredicate<java.lang.String,​java.lang.Class<?>>
      • setUniqueItemIdentifierService

        public void setUniqueItemIdentifierService​(UniqueItemIdentifierService uniqueItemIdentifierService)