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

io.virtdata.libbasics.shared.unary_string.ToString Maven / Gradle / Ivy

There is a newer version: 2.12.15
Show newest version
package io.virtdata.libbasics.shared.unary_string;

import io.virtdata.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