org.openstack4j.openstack.identity.functions.ServiceToServiceType Maven / Gradle / Ivy
package org.openstack4j.openstack.identity.functions;
import org.openstack4j.api.types.ServiceType;
import org.openstack4j.model.identity.Access.Service;
import com.google.common.base.Function;
/**
* A Function which takes a ServiceCatalog -> Service and returns the corresponding common ServiceType
*
* @author Jeremy Unruh
*/
public class ServiceToServiceType implements Function {
/**
* {@inheritDoc}
*/
@Override
public ServiceType apply(Service input) {
return input.getServiceType();
}
}