org.jclouds.compute.domain.internal
Class NullEqualToIsParentOrIsGrandparentOfCurrentLocation

java.lang.Object
  extended by org.jclouds.compute.domain.internal.NullEqualToIsParentOrIsGrandparentOfCurrentLocation
All Implemented Interfaces:
com.google.common.base.Predicate<ComputeMetadata>

public class NullEqualToIsParentOrIsGrandparentOfCurrentLocation
extends Object
implements com.google.common.base.Predicate<ComputeMetadata>

If the current location id is null, then we don't care where to launch a node. If the input location is null, then the data isn't location sensitive If the input location equals, is a parent or grandparent of the specified location, then we are ok.


Constructor Summary
NullEqualToIsParentOrIsGrandparentOfCurrentLocation(com.google.common.base.Supplier<org.jclouds.domain.Location> locationSupplier)
           
 
Method Summary
 boolean apply(ComputeMetadata 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

NullEqualToIsParentOrIsGrandparentOfCurrentLocation

public NullEqualToIsParentOrIsGrandparentOfCurrentLocation(com.google.common.base.Supplier<org.jclouds.domain.Location> locationSupplier)
Method Detail

apply

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

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.