public class WrapServerIfApplicableFunction extends Object implements com.google.common.base.Function<ServerCreate,ModelEntity>
| Modifier and Type | Field and Description |
|---|---|
static WrapServerIfApplicableFunction |
INSTANCE |
| Constructor and Description |
|---|
WrapServerIfApplicableFunction() |
| Modifier and Type | Method and Description |
|---|---|
ModelEntity |
apply(ServerCreate server)
Wraps the ServerCreate if applicable or returns
server if the operation is a no-op |
public static final WrapServerIfApplicableFunction INSTANCE
public ModelEntity apply(ServerCreate server)
server if the operation is a no-opapply in interface com.google.common.base.Function<ServerCreate,ModelEntity>Copyright © 2017. All rights reserved.