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

io.nosqlbench.virtdata.library.basics.shared.unary_string.ToString Maven / Gradle / Ivy

There is a newer version: 5.17.0
Show newest version
package io.nosqlbench.virtdata.library.basics.shared.unary_string;

import io.nosqlbench.virtdata.api.annotations.ThreadSafeMapper;

import java.util.function.Function;

/**
 * Converts the input to the most obvious string representation with String.valueOf(...).
 * Forms which accept a function will evaluate that function first and then apply
 * String.valueOf() to the result.
 */
@ThreadSafeMapper
public class ToString implements Function {

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy