com.github.andyshao.lang.OutputStructConvert Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of Gear Show documentation
Show all versions of Gear Show documentation
Enhance and formating the coding of JDK
The newest version!
package com.github.andyshao.lang;
/**
*
* Title: Adding Output factory argument in Convert
* Descript:
* Copyright: Copryright(c) 5 Jun 2017
* Encoding:UNIX UTF-8
* @author Andy.Shao
*
* @param the input
* @param the output
*/
public interface OutputStructConvert extends Convert {
/**
* convert operation
* @param in input
* @param factory {@link OutputFactory}
* @return the output
*/
OUT convert(IN in, OutputFactory factory);
/**
* output factory
* @param data type
*/
@FunctionalInterface
interface OutputFactory {
/**
* build operation
* @return output element
*/
E build();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy