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

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

Introduction

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

Prototype

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

Source Link

Document

Returns a predicate that always evaluates to true .

Usage

From source file:com.eucalyptus.simpleworkflow.persist.PersistenceWorkflowExecutions.java

public <T> List<T> listRetentionExpired(final long time, final Function<? super WorkflowExecution, T> transform)
        throws SwfMetadataException {
    return listByExample(WorkflowExecution.exampleForClosedWorkflow(), Predicates.alwaysTrue(),
            Restrictions.disjunction().add(Restrictions.lt("retentionTimestamp", new Date(time)))
                    .add(Restrictions.lt("closeTimestamp",
                            new Date(time - getWorkflowExecutionRetentionDurationMillis()))),
            Collections.<String, String>emptyMap(), transform);
}

From source file:org.polymap.core.project.ui.project.ProjectTreeViewer.java

public void setContentFilter(Predicate filter) {
    this.contentFilter = filter != null ? filter : Predicates.alwaysTrue();
}

From source file:net.shibboleth.idp.saml.profile.config.saml2.AbstractSAML2ProfileConfiguration.java

/**
 * Constructor.//from  w w  w .j  a v  a2s.c  om
 * 
 * @param profileId ID of the the communication profile, never null or empty
 */
public AbstractSAML2ProfileConfiguration(@Nonnull @NotEmpty final String profileId) {
    super(profileId);

    encryptAssertionsPredicate = Predicates.alwaysTrue();
    encryptNameIDsPredicate = Predicates.alwaysFalse();
    encryptAttributesPredicate = Predicates.alwaysFalse();
    proxyCount = 0;
    proxyAudiences = Collections.emptySet();
}

From source file:org.n52.sos.request.operator.TransactionalRequestChecker.java

private Predicate<RequestContext> createTokenPredicate(TransactionalSecurityConfiguration config) {
    if (!config.isTransactionalActive() || !config.isSetTransactionalToken()) {
        return Predicates.alwaysTrue();
    } else {//from w  w w  . ja v a  2  s .  c  om
        return new TokenPredicate(config.getTransactionalToken());
    }
}

From source file:org.apache.brooklyn.core.typereg.BasicBrooklynTypeRegistry.java

public Iterable<RegisteredType> getAll() {
    return getMatching(Predicates.alwaysTrue());
}

From source file:org.apache.brooklyn.rest.resources.BundleResource.java

@Override
public List<BundleSummary> list(String versions, boolean detail) {
    return list(Predicates.alwaysTrue(), TypeResource.isLatestOnly(versions, true), detail);
}

From source file:com.anathema_roguelike.main.utilities.Utils.java

public static <T> Collection<Class<? extends T>> getSubclasses(Class<T> superclass, boolean includeAbstract) {
    return getSubclasses(superclass, includeAbstract, false, Predicates.alwaysTrue());
}

From source file:org.opensaml.saml.common.binding.BindingDescriptor.java

/** Constructor. */
public BindingDescriptor() {
    synchronous = false;
    artifact = false;
    activationCondition = Predicates.alwaysTrue();
}

From source file:org.spongepowered.common.mixin.core.entity.ai.MixinEntityAINearestAttackableTarget.java

@SuppressWarnings("unchecked")
@Override/*  w  ww  .  ja v  a 2 s . c o  m*/
public java.util.function.Predicate<Living> getFilter() {
    return this.targetEntitySelector == null ? GuavaJavaUtils.asJavaPredicate(Predicates.alwaysTrue())
            : GuavaJavaUtils.<Living>asJavaPredicate(this.targetEntitySelector);
}

From source file:org.jclouds.trmk.vcloud_0_8.config.DefaultVCloudReferencesModule.java

@Provides
@Singleton
@org.jclouds.trmk.vcloud_0_8.endpoints.Catalog
protected Predicate<ReferenceType> provideDefaultCatalogSelector(Injector i) {
    return Predicates.alwaysTrue();
}