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

com.jparams.object.builder.provider.CharProvider Maven / Gradle / Ivy

There is a newer version: 2.3.1
Show newest version
package com.jparams.object.builder.provider;

import java.util.UUID;

import com.jparams.object.builder.Context;
import com.jparams.object.builder.type.Type;

public class CharProvider implements Provider
{
    @Override
    public boolean supports(final Type type)
    {
        return type.getJavaType().isAssignableFrom(Character.class) || type.getJavaType().isAssignableFrom(char.class);
    }

    @Override
    public Character provide(final Context context)
    {
        return UUID.randomUUID().toString().charAt(0);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy