Codota Logo
Filter.matches
Code IndexAdd Codota to your IDE (free)

How to use
matches
method
in
org.dihedron.core.filters.Filter

Best Java code snippets using org.dihedron.core.filters.Filter.matches (Showing top 12 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
DateTime d =
  • Codota Iconnew DateTime()
  • Codota IconDateTimeFormatter formatter;String text;formatter.parseDateTime(text)
  • Codota IconObject instant;new DateTime(instant)
  • Smart code suggestions by Codota
}
origin: org.dihedron.commons/base

/**
 * @see org.dihedron.core.filters.Filter#matches(java.lang.Object)
 */
@Override
public boolean matches(T object) {
  return !subfilter.matches(object);
}

origin: org.dihedron.commons/dihedron-commons

/**
 * @see org.dihedron.core.filters.Filter#matches(java.lang.Object)
 */
@Override
public boolean matches(T object) {
  return !subfilter.matches(object);
}

origin: org.dihedron.commons/dihedron-core

/**
 * @see org.dihedron.core.filters.Filter#matches(java.lang.Object)
 */
@Override
public boolean matches(T object) {
  return !subfilter.matches(object);
}

origin: org.dihedron.commons/dihedron-commons

  /**
   * @see org.dihedron.core.filters.Filter#matches(java.lang.Object)
   */
  @Override
  public boolean matches(T object) {
    boolean matched = false;
    for(Filter<T> filter : getSubFilters()) {
      matched = matched || filter.matches(object);
      if(matched) {
        return true;
      }
    }
    return false;
  }
}
origin: org.dihedron.commons/base

  /**
   * @see org.dihedron.core.filters.Filter#matches(java.lang.Object)
   */
  @Override
  public boolean matches(T object) {
    boolean matched = false;
    for(Filter<T> filter : getSubFilters()) {
      matched = matched || filter.matches(object);
      if(matched) {
        return true;
      }
    }
    return false;
  }
}
origin: org.dihedron.commons/base

  /**
   * @see org.dihedron.core.filters.Filter#matches(java.lang.Object)
   */
  @Override
  public boolean matches(T object) {
    boolean matched = true;
    for(Filter<T> filter : getSubFilters()) {
      matched = matched && filter.matches(object);
      if(!matched) {
        return false;
      }
    }
    return true;
  }
}
origin: org.dihedron.commons/dihedron-core

  /**
   * @see org.dihedron.core.filters.Filter#matches(java.lang.Object)
   */
  @Override
  public boolean matches(T object) {
    boolean matched = true;
    for(Filter<T> filter : getSubFilters()) {
      matched = matched && filter.matches(object);
      if(!matched) {
        return false;
      }
    }
    return true;
  }
}
origin: org.dihedron.commons/dihedron-core

  /**
   * @see org.dihedron.core.filters.Filter#matches(java.lang.Object)
   */
  @Override
  public boolean matches(T object) {
    boolean matched = false;
    for(Filter<T> filter : getSubFilters()) {
      matched = matched || filter.matches(object);
      if(matched) {
        return true;
      }
    }
    return false;
  }
}
origin: org.dihedron.commons/dihedron-commons

  /**
   * @see org.dihedron.core.filters.Filter#matches(java.lang.Object)
   */
  @Override
  public boolean matches(T object) {
    boolean matched = true;
    for(Filter<T> filter : getSubFilters()) {
      matched = matched && filter.matches(object);
      if(!matched) {
        return false;
      }
    }
    return true;
  }
}
origin: org.dihedron.commons/base

/**
 * Applies the given filter to the input and returns only those elements 
 * that match it.
 * 
 * @param filter
 *   a (possible compound) filter; elements in the input array matching the 
 *   filter will be returned.
 * @param elements
 *   the collection of objects to filter.
 * @return
 *   a filtered set of elements.
 */
public static <T> Collection<T> apply(Filter<T> filter, Collection<T> elements) {
  Collection<T> result = new ArrayList<T>();
  if(elements != null) {
    for(T element : elements) {
      logger.trace("analysing element '{}'...", element);
      if(filter.matches(element)) {
        logger.trace("... element '{}' matches", element);
        result.add(element);
      } else {
        logger.trace("... element '{}' skipped", element);
      }
    }
  }
  return result;
}

origin: org.dihedron.commons/dihedron-commons

/**
 * Applies the given filter to the input and returns only those elements 
 * that match it.
 * 
 * @param filter
 *   a (possible compound) filter; elements in the input array matching the 
 *   filter will be returned.
 * @param elements
 *   the collection of objects to filter.
 * @return
 *   a filtered set of elements.
 */
public static <T> Collection<T> apply(Filter<T> filter, Collection<T> elements) {
  Collection<T> result = new ArrayList<T>();
  if(elements != null) {
    for(T element : elements) {
      logger.trace("analysing element '{}'...", element);
      if(filter.matches(element)) {
        logger.trace("... element '{}' matches", element);
        result.add(element);
      } else {
        logger.trace("... element '{}' skipped", element);
      }
    }
  }
  return result;
}

origin: org.dihedron.commons/dihedron-core

/**
 * Applies the given filter to the input and returns only those elements 
 * that match it.
 * 
 * @param filter
 *   a (possible compound) filter; elements in the input array matching the 
 *   filter will be returned.
 * @param elements
 *   the collection of objects to filter.
 * @return
 *   a filtered set of elements.
 */
public static <T> Collection<T> apply(Filter<T> filter, Collection<T> elements) {
  Collection<T> result = new ArrayList<T>();
  if(elements != null) {
    for(T element : elements) {
      logger.trace("analysing element '{}'...", element);
      if(filter.matches(element)) {
        logger.trace("... element '{}' matches", element);
        result.add(element);
      } else {
        logger.trace("... element '{}' skipped", element);
      }
    }
  }
  return result;
}

org.dihedron.core.filtersFiltermatches

Javadoc

Returns whether the given object matches this filter.

Popular methods of Filter

  • apply
    Applies the given filter to the input and returns only those elements that match it.
  • reset
    This is an optional method; it should be implemented by stateful filters, which need to be reset bef

Popular in Java

  • Reading from database using SQL prepared statement
  • scheduleAtFixedRate (ScheduledExecutorService)
  • runOnUiThread (Activity)
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • BigInteger (java.math)
    Immutable arbitrary-precision integers. All operations behave as if BigIntegers were represented in
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • Set (java.util)
    A collection that contains no duplicate elements. More formally, sets contain no pair of elements e1
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now