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.intuit.wasabi.api.pagination.filters.PaginationFilter.java

/**
 * A filter to filter objects for pagination. To implement a specific filter,
 * inherit from this class and implement the function {@link Predicate#test(Object)} like this:
 * <pre>{@code
 * {@literal @}Override
 *  public boolean test(T object) {

From source file com.smoketurner.pipeline.application.core.MessageProcessor.java

public class MessageProcessor implements Predicate<Message> {

    private static final Logger LOGGER = LoggerFactory.getLogger(MessageProcessor.class);
    private static final ObjectMapper MAPPER = Jackson.newObjectMapper();
    private final AmazonS3Downloader s3;
    private final InstrumentedSseBroadcaster broadcaster;