All Downloads are FREE. Search and download functionalities are using the official Maven repository.

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();
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy