![JAR search and dependency download from the Maven repository](/logo.png)
com.github.andyshao.convert.Convert Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of Useful-Tools Show documentation
Show all versions of Useful-Tools Show documentation
Some thing about the useful tools of the JDK 1.8.
The newest version!
package com.github.andyshao.convert;
import java.util.Objects;
import java.util.function.Function;
/**
* General convert interface.
* Title:
* Descript:
* Copyright: Copryright(c) Jun 14, 2014
* Encoding:UNIX UTF-8
*
* @author Andy.Shao
*
* @param the input
* @param the output
*/
@FunctionalInterface
public interface Convert extends Function{
public static final Convert BYTES_2_HEX = (Byte[] in) -> {
StringBuilder builder = new StringBuilder();
for (Byte b : in) {
builder.append(ConvertByte2Str.byte2Char(ConvertByte2Str.BYTE_HEX).apply(b));
}
return builder.toString();
};
public static final Convert HEX_2_BYTES = new ConvertStr2Byte();
public static final Convert
© 2015 - 2025 Weber Informatics LLC | Privacy Policy