org.jclouds.location.predicates.fromconfig
Class AnyOrConfiguredZoneId

java.lang.Object
  extended by org.jclouds.location.predicates.fromconfig.AnyOrConfiguredZoneId
All Implemented Interfaces:
com.google.common.base.Predicate<String>, ZoneIdFilter

@Singleton
public class AnyOrConfiguredZoneId
extends Object
implements ZoneIdFilter

If there are zones configured in ZoneIdsFromConfiguration, return true if that set contains the input param. If there aren't, return true.

Author:
Adrian Cole

Constructor Summary
protected AnyOrConfiguredZoneId(ZoneIdsFromConfiguration idsInConfigSupplier)
           
 
Method Summary
 boolean apply(String input)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.google.common.base.Predicate
equals
 

Constructor Detail

AnyOrConfiguredZoneId

@Inject
protected AnyOrConfiguredZoneId(ZoneIdsFromConfiguration idsInConfigSupplier)
Method Detail

apply

public boolean apply(String input)
Specified by:
apply in interface com.google.common.base.Predicate<String>

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009-2013 jclouds. All Rights Reserved.