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

io.virtdata.libbasics.shared.unary_int.ToInt Maven / Gradle / Ivy

The newest version!
package io.virtdata.libbasics.shared.unary_int;

import io.virtdata.annotations.Categories;
import io.virtdata.annotations.Category;
import io.virtdata.annotations.ThreadSafeMapper;

import java.util.function.Function;

@ThreadSafeMapper
@Categories({Category.conversion})
public class ToInt implements Function {

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy