Class WrapServerIfApplicableFunction
- java.lang.Object
-
- org.openstack4j.openstack.compute.functions.WrapServerIfApplicableFunction
-
- All Implemented Interfaces:
com.google.common.base.Function<ServerCreate,ModelEntity>,Function<ServerCreate,ModelEntity>
public class WrapServerIfApplicableFunction extends Object implements com.google.common.base.Function<ServerCreate,ModelEntity>
Wraps a ServerCreate entity to another type if applicable. For example if a server container scheduler hints this function is responsible for wrapping it in a higher level class to support booting.- Author:
- Jeremy Unruh
-
-
Field Summary
Fields Modifier and Type Field Description static WrapServerIfApplicableFunctionINSTANCE
-
Constructor Summary
Constructors Constructor Description WrapServerIfApplicableFunction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ModelEntityapply(ServerCreate server)Wraps the ServerCreate if applicable or returnsserverif the operation is a no-op
-
-
-
Field Detail
-
INSTANCE
public static final WrapServerIfApplicableFunction INSTANCE
-
-
Method Detail
-
apply
public ModelEntity apply(ServerCreate server)
Wraps the ServerCreate if applicable or returnsserverif the operation is a no-op- Specified by:
applyin interfacecom.google.common.base.Function<ServerCreate,ModelEntity>- Specified by:
applyin interfaceFunction<ServerCreate,ModelEntity>
-
-