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

pl.jalokim.propertiestojson.resolvers.primitives.string.TextToStringResolver Maven / Gradle / Ivy

There is a newer version: 5.3.0
Show newest version
package pl.jalokim.propertiestojson.resolvers.primitives.string;

import pl.jalokim.propertiestojson.resolvers.PrimitiveJsonTypesResolver;

import java.util.Optional;

public class TextToStringResolver implements TextToConcreteObjectResolver {

    public static final TextToStringResolver TO_STRING_RESOLVER = new TextToStringResolver();

    @Override
    public Optional returnObjectWhenCanBeResolved(PrimitiveJsonTypesResolver primitiveJsonTypesResolver,
                                                          String propertyValue,
                                                          String propertyKey) {
        return Optional.ofNullable(propertyValue);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy