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

org.jboss.forge.convert.Converter Maven / Gradle / Ivy

The newest version!
/*
 * Copyright 2012 Red Hat, Inc. and/or its affiliates.
 *
 * Licensed under the Eclipse Public License version 1.0, available at
 * http://www.eclipse.org/legal/epl-v10.html
 */

package org.jboss.forge.convert;

import org.jboss.forge.container.services.Exported;

@Exported
public interface Converter
{
   /**
    * Convert the source of type SOURCE_TYPE to target type TARGET_TYPE.
    *
    * @param source the source object to convert, which must be an instance of S
    * @return the converted object, which must be an instance of T
    */
   TARGET_TYPE convert(SOURCE_TYPE source);

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy