Example usage for java.util.function Predicate interface-usage

List of usage examples for java.util.function Predicate interface-usage

Introduction

In this page you can find the example usage for java.util.function Predicate interface-usage.

Usage

From source file com.yqboots.fss.core.support.FileTypeFilterPredicate.java

/**
 * The Predicate that filters files by file types.
 *
 * @author Eric H B Zhan
 * @since 1.0.0
 */

From source file com.playonlinux.library.LibraryFilter.java

/**
 * Filter for installed applications in the MainWindow
 */
public class LibraryFilter implements Predicate<InstalledApplicationEntity> {
    private final String name;

From source file org.apache.solr.request.SubstringBytesRefFilter.java

/**
 * An implementation of {@link Predicate} which returns true if the BytesRef contains a given substring.
 */
public class SubstringBytesRefFilter implements Predicate<BytesRef> {
    final private String contains;
    final private boolean ignoreCase;

From source file com.playonlinux.apps.AppsFilter.java

/**
 * Filter implementation for CenterItems
 */
public class AppsFilter implements Predicate<AppEntity> {
    private final String title;
    private final String category;

From source file com.haulmont.cuba.gui.app.security.role.edit.tabs.EntityNameFilter.java

public class EntityNameFilter<T extends AssignableTarget> implements Predicate<T> {

    protected Metadata metadata;

    protected final CheckBox assignedOnlyCheckBox;
    protected final CheckBox systemLevelCheckBox;

From source file org.apache.metron.profiler.client.window.predicates.DateSpecifierPredicate.java

/**
 * An inclusion/exclusion specifier which matches against a specific date.
 * The default format is yyyy/MM/dd
 */
public class DateSpecifierPredicate implements Predicate<Long> {
    final static ThreadLocal<SimpleDateFormat> FORMAT = new ThreadLocal<SimpleDateFormat>() {

From source file org.apache.metron.profiler.client.stellar.IntervalPredicate.java

/**
 * A predicate applied to a type T which can be converted into a long which indicates whether it exists
 * within a set of inclusive ranges of longs.  Generally these ranges may be thought of as timestamps.
 * In this interpretation, it will let you quickly indicate whether a given timestamp is within a set of timestamp
 * ranges.
 *

From source file org.sonar.scanner.scan.filesystem.SameInputFilePredicate.java

public class SameInputFilePredicate implements Predicate<InputFile> {
    private static final Logger LOG = LoggerFactory.getLogger(SameInputFilePredicate.class);
    private final ProjectRepositories projectRepositories;
    private final String moduleKeyWithBranch;

    public SameInputFilePredicate(ProjectRepositories projectRepositories, String moduleKeyWithBranch) {

From source file org.apache.metron.common.field.validation.network.IPValidation.java

public class IPValidation implements FieldValidation, Predicate<List<Object>> {

    @Stellar(name = "IS_IP", description = "Determine if an string is an IP or not.", params = {
            "ip - An object which we wish to test is an ip",
            "type (optional) - Object of string or collection type (e.g. list) one of IPV4 or IPV6 or both.  The default is IPV4." }, returns = "True if the string is an IP and false otherwise.")
    public static class IS_IP extends Predicate2StellarFunction {

From source file com.github.horrorho.inflatabledonkey.args.PropertyLoader.java

/**
 * PropertyLoader.
 *
 * @author Ahseya
 */
@Immutable