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:org.jclouds.cloudstack.predicates.PublicIPAddressPredicates.java

/**
 * 
 * @return always returns true.
 */
public static Predicate<PublicIPAddress> any() {
    return Predicates.alwaysTrue();
}

From source file:net.shibboleth.idp.saml.attribute.encoding.AbstractSAML2NameIDEncoder.java

/** Constructor. */
public AbstractSAML2NameIDEncoder() {
    activationCondition = Predicates.alwaysTrue();
}

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

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

From source file:net.shibboleth.idp.saml.attribute.encoding.AbstractSAML1NameIdentifierEncoder.java

/** Constructor. */
public AbstractSAML1NameIdentifierEncoder() {
    activationCondition = Predicates.alwaysTrue();
}

From source file:com.anathema_roguelike.characters.abilities.targetingstrategies.TargetingStrategy.java

public TargetingStrategy(Range range, TargetMode targetMode) {
    this.range = range;
    this.targetMode = targetMode;
    this.targetValidator = Predicates.alwaysTrue();
}

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

public <T> List<T> listFired(final Function<? super Timer, T> transform) throws SwfMetadataException {
    return listByExample(Timer.exampleWithOwner(null), Predicates.alwaysTrue(),
            Restrictions.lt("timeoutTimestamp", new Date()), Collections.<String, String>emptyMap(), transform);
}

From source file:net.revelc.code.blazon.types.strings.StringType.java

@Override
public String description() {
    if (Predicates.alwaysTrue().equals(predicate)) {
        return "Any string.";
    }// w w w  . j  ava2  s  . c  o  m
    return predicateDescription;
}

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

public <T> List<T> listTimedOut(final Function<? super ActivityTask, T> transform) throws SwfMetadataException {
    return listByExample(ActivityTask.exampleWithOwner(null), Predicates.alwaysTrue(),
            Restrictions.lt("timeoutTimestamp", new Date()), Collections.<String, String>emptyMap(), transform);
}

From source file:org.eclipse.recommenders.utils.Recommendations.java

public static Predicate<Recommendation<?>> filterAny() {
    return Predicates.alwaysTrue();
}

From source file:org.apache.brooklyn.rest.transform.AdjunctTransformer.java

public static AdjunctDetail adjunctDetail(Entity entity, EntityAdjunct adjunct, UriBuilder ub,
        BrooklynRestResourceUtils utils) {
    AdjunctDetail result = embellish(new AdjunctDetail(adjunct), entity, adjunct, ub, utils);
    for (ConfigKey<?> key : adjunct.config().findKeysDeclared(Predicates.alwaysTrue())) {
        result.parameter(//from   w w w  . j a v  a2s.co  m
                ConfigTransformer.of(key).on(entity, adjunct).includeLinks(ub, false, true).transform());
    }
    result.config(EntityTransformer.getConfigValues(utils, adjunct));
    return result;
}