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

io.virtdata.formatting.Format Maven / Gradle / Ivy

There is a newer version: 2.12.15
Show newest version
package io.virtdata.formatting;

import io.virtdata.annotations.ThreadSafeMapper;

import java.util.function.Function;

@ThreadSafeMapper
public class Format implements Function {

    private final String format;

    public Format(String format) {
        this.format = format;
    }

    @Override
    public String apply(Object o) {
        return String.format(format,o);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy