Class NewItemPersistencePredicate

  • All Implemented Interfaces:
    org.apache.commons.collections.Predicate

    public class NewItemPersistencePredicate
    extends java.lang.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 Summary

      Constructors 
      Constructor Description
      NewItemPersistencePredicate()
      Instantiates a new new item persistence predicate.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean evaluate​(java.lang.Object object)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • NewItemPersistencePredicate

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

      • evaluate

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