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

org.openstack4j.model.common.functions.IdEntityToString Maven / Gradle / Ivy

package org.openstack4j.model.common.functions;

import org.openstack4j.model.common.IdEntity;

import com.google.common.base.Function;

/**
 * A function which transforms an IdEntity into a String identifier
 * 
 * @author Jeremy Unruh
 */
public class IdEntityToString implements Function {

    public static final IdEntityToString INSTANCE = new IdEntityToString();
    
    @Override
    public String apply(IdEntity input) {
        return input.getId();
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy