org.jclouds.collect
Class FindResourceInSet<F,T>

java.lang.Object
  extended by org.jclouds.collect.FindResourceInSet<F,T>
All Implemented Interfaces:
com.google.common.base.Function<F,T>
Direct Known Subclasses:
ServerInfoToNodeMetadata.FindImageForId, ServerInfoToNodeMetadata.FindImageForId, ServerToNodeMetadata.FindHardwareForServer, ServerToNodeMetadata.FindImageForServer, ServerToNodeMetadata.FindLocationForServer, VirtualGuestToNodeMetadata.FindLocationForVirtualGuest, VMToNodeMetadata.FindLocationForVM

@Singleton
public abstract class FindResourceInSet<F,T>
extends Object
implements com.google.common.base.Function<F,T>

Author:
Adrian Cole

Field Summary
protected  Logger logger
           
 
Constructor Summary
FindResourceInSet(com.google.common.base.Supplier<Set<? extends T>> set)
           
 
Method Summary
 T apply(F from)
           
abstract  boolean matches(F from, T input)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.google.common.base.Function
equals
 

Field Detail

logger

protected Logger logger
Constructor Detail

FindResourceInSet

@Inject
public FindResourceInSet(com.google.common.base.Supplier<Set<? extends T>> set)
Method Detail

matches

public abstract boolean matches(F from,
                                T input)

apply

public T apply(F from)
Specified by:
apply in interface com.google.common.base.Function<F,T>


Copyright © 2009-2011 jclouds. All Rights Reserved.