Class NewItemPersistencePredicate

java.lang.Object
de.hybris.platform.cockpit.util.NewItemPersistencePredicate
All Implemented Interfaces:
org.apache.commons.collections.Predicate

public class NewItemPersistencePredicate extends Object implements org.apache.commons.collections.Predicate
A little Predicate class to check and remove from collection of TypedObject this one which is not persisted yet. Usage:
 final ItemPersistenceCheck filterPredicate = new ItemPersistenceCheck();
 CollectionUtils.filter(contextItems, filterPredicate);
 
  • Constructor Details

    • NewItemPersistencePredicate

      public NewItemPersistencePredicate()
      Instantiates a new new item persistence predicate.
  • Method Details

    • evaluate

      public boolean evaluate(Object object)
      Specified by:
      evaluate in interface org.apache.commons.collections.Predicate