Example usage for com.google.common.base Predicates alwaysFalse

List of usage examples for com.google.common.base Predicates alwaysFalse

Introduction

In this page you can find the example usage for com.google.common.base Predicates alwaysFalse.

Prototype

@GwtCompatible(serializable = true)
public static <T> Predicate<T> alwaysFalse() 

Source Link

Document

Returns a predicate that always evaluates to false .

Usage

From source file:org.apache.druid.client.FilteredHttpServerInventoryViewProvider.java

@Override
public HttpServerInventoryView get() {
    return new HttpServerInventoryView(smileMapper, httpClient, druidNodeDiscoveryProvider,
            Predicates.alwaysFalse(), config);
}

From source file:org.opendaylight.yangtools.yang.data.api.schema.tree.StoreTreeNodes.java

/**
 * Finds a node or closest parent in  the tree
 * @param <T>//  w ww  .java2  s  .  c om
 *          Store tree node type.
 * @param tree Data Tree
 * @param path Path to the node
 * @return Map.Entry Entry with key which is path to closest parent and value is parent node.
 *
 */
public static <T extends StoreTreeNode<T>> Entry<YangInstanceIdentifier, T> findClosest(final T tree,
        final YangInstanceIdentifier path) {
    return findClosestsOrFirstMatch(tree, path, Predicates.alwaysFalse());
}

From source file:org.eclipse.emf.compare.rcp.ui.internal.structuremergeviewer.filters.impl.AbstractDifferenceFilter.java

/**
 * {@inheritDoc}//from   www . j  ava2s  . c  o m
 * 
 * @see org.eclipse.emf.compare.rcp.ui.internal.structuremergeviewer.filters.IDifferenceFilter#getPredicateWhenUnselected()
 */
public Predicate<? super EObject> getPredicateWhenUnselected() {
    return Predicates.alwaysFalse();
}

From source file:com.google.caliper.runner.target.AndroidVm.java

@Override
public Predicate<String> vmPropertiesToRetain() {
    return Predicates.alwaysFalse();
}

From source file:net.shibboleth.idp.saml.idwsf.profile.config.SSOSProfileConfiguration.java

/**
 * Constructor.//w w w.j  a v a  2  s .c o m
 * 
 * @param profileId unique ID for this profile
 */
protected SSOSProfileConfiguration(final String profileId) {
    super(profileId);

    delegationPredicate = Predicates.alwaysFalse();
}

From source file:org.obeonetwork.dsl.uml2.core.internal.dialogs.ConfirmDeletionTreeLabelProvider.java

/**
 * Set the deleted predicate. Predicate to find the deleted elements that will be represented in red in
 * the tree viewer.//from  w  w w .j a  v  a  2 s.  c  o m
 *
 * @param isDeletedPredicate
 *            Deleted elements predicate
 * @return Deleted predicate
 */
public Predicate<Object> setDeletedPredicate(Predicate<Object> isDeletedPredicate) {
    return isDeleted = isDeletedPredicate != null ? isDeletedPredicate : Predicates.alwaysFalse();
}

From source file:org.apache.druid.server.coordination.broker.DruidBroker.java

@Inject
public DruidBroker(final FilteredServerInventoryView serverInventoryView, final @Self DruidNode self,
        final ServiceAnnouncer serviceAnnouncer) {
    this.self = self;
    this.serviceAnnouncer = serviceAnnouncer;

    serverInventoryView.registerSegmentCallback(MoreExecutors.sameThreadExecutor(),
            new ServerView.BaseSegmentCallback() {
                @Override/*  w  ww  . j av a  2  s .  c o m*/
                public ServerView.CallbackAction segmentViewInitialized() {
                    serviceAnnouncer.announce(self);
                    return ServerView.CallbackAction.UNREGISTER;
                }
            },
            // We are not interested in any segment callbacks except view initialization
            Predicates.alwaysFalse());
}

From source file:net.shibboleth.idp.saml.profile.config.idwsf.SSOSProfileConfiguration.java

/**
 * Constructor./*from   w  w  w.j a v  a  2s  .  co  m*/
 * 
 * @param profileId unique ID for this profile
 */
protected SSOSProfileConfiguration(final String profileId) {
    super(profileId);

    maximumTokenDelegationChainLength = 0;
    delegationPredicate = Predicates.alwaysFalse();
}

From source file:cherry.foundation.querydsl.QueryDslSupportImpl.java

@Transactional
@Override/*from  w ww  . j  av a  2s . c om*/
public <T> PagedList<T> search(QueryConfigurer commonClause, QueryConfigurer orderByClause, long pageNo,
        long pageSz, final RowMapper<T> rowMapper, final Expression<?>... expressions) {
    Predicate<Long> cancelPredicate = Predicates.alwaysFalse();
    return search(commonClause, orderByClause, pageNo, pageSz, cancelPredicate, rowMapper, expressions);
}

From source file:com.pinterest.pinlater.commons.ostrich.StatTrackingEventListener.java

/**
 * An event listener for tracking success and failure times and exceptions.
 * @param startTime Obtained from TimeUtils.millisTime() ONLY!
 * @param prefix The prefix of the stat.
 * @param info The info will be logged when an exception happens
 * @param logError true if errors should be logged
 * @param tags a map of tags to be appended onto the stats
 *//*from w  w w.  j a  va  2 s  . co  m*/
public StatTrackingEventListener(long startTime, String prefix, String info, boolean logError,
        Map<String, String> tags) {
    this.startTime = startTime;
    this.statPrefix = MorePreconditions.checkNotBlank(prefix);
    this.info = info;
    this.logError = logError;
    ignoreExceptionPredicate = Predicates.alwaysFalse();
    appendTags(tags);
}