io.virtdata.libbasics.shared.formatting.Format Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of virtdata-lib-realer Show documentation
Show all versions of virtdata-lib-realer Show documentation
With inspiration from other libraries
package io.virtdata.libbasics.shared.formatting;
import io.virtdata.annotations.Categories;
import io.virtdata.annotations.Category;
import io.virtdata.annotations.Example;
import io.virtdata.annotations.ThreadSafeMapper;
import java.util.function.Function;
/**
* Apply the Java String.format method to an incoming object.
* @see Java 8 String.format(...) javadoc
* Note: This function can often be quite slow, so more direct methods are generally preferrable.
*/
@ThreadSafeMapper
@Categories(Category.conversion)
public class Format implements Function