com.alon.spring.crud.repository.specification.converter.FloatConverter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spring-crud-base Show documentation
Show all versions of spring-crud-base Show documentation
Projeto base para criação de serviços e recusos de CRUD com Spring Data JPA.
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.alon.spring.crud.repository.specification.converter;
/**
*
* @author paulo
*/
public class FloatConverter implements DecoderConverter {
private static FloatConverter INSTANCE;
private FloatConverter() {}
@Override
public Float convert(String value) {
return Float.valueOf(value);
}
public static FloatConverter getInstance() {
if (INSTANCE == null)
INSTANCE = new FloatConverter();
return INSTANCE;
}
}