Class OntTools.PredicatesFilter

  • All Implemented Interfaces:
    java.util.function.Predicate<Statement>
    Enclosing class:
    OntTools

    public static class OntTools.PredicatesFilter
    extends java.lang.Object
    implements java.util.function.Predicate<Statement>
    A filter which accepts statements whose predicate matches one of a collection of predicates held by the filter object.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      java.util.Collection<Property> m_preds  
    • Method Summary

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

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.function.Predicate

        and, negate, or
    • Field Detail

      • m_preds

        public java.util.Collection<Property> m_preds
    • Constructor Detail

      • PredicatesFilter

        public PredicatesFilter​(java.util.Collection<Property> preds)
        Accept statements with any predicate from preds
      • PredicatesFilter

        public PredicatesFilter​(Property[] preds)
        Accept statements with any predicate from preds
      • PredicatesFilter

        public PredicatesFilter​(Property pred)
        Accept statements with predicate pred
    • Method Detail

      • test

        public boolean test​(Statement s)
        Specified by:
        test in interface java.util.function.Predicate<Statement>