@throws illegalargumentexception if the add is invalid
@param object the object being added
@description override to validate the object being added to ensure it matchesthe predicate.
file : https_github_com_apache_commons-collections_git/src/main/java/org/apache/commons/collections4/queue/PredicatedQueue.java
file : https_github_com_apache_commons-collections_git/src/main/java/org/apache/commons/collections4/collection/PredicatedCollection.java