public final class ValorUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static Double |
getPercentual(Integer valor,
Integer total) |
static Double |
getPercentual(Long valor,
Long total) |
static String |
getPercentualFormatado(BigDecimal valor,
BigDecimal total) |
static String |
getPercentualFormatado(Integer valor,
Integer total) |
static String |
getPercentualFormatado(Long valor,
Long total) |
static String |
getValorFormatado(Integer valor) |
static String |
getValorFormatado(Long valor) |
static BigDecimal |
getValorMonetario(String valor) |
static String |
getValorMonetarioComSimboloRealFormatado(BigDecimal valor) |
static String |
getValorMonetarioFormatado(BigDecimal valor) |
static boolean |
isNullOuZero(Object valor) |
public static BigDecimal getValorMonetario(String valor)
public static String getValorMonetarioComSimboloRealFormatado(BigDecimal valor)
public static String getValorMonetarioFormatado(BigDecimal valor)
public static String getPercentualFormatado(BigDecimal valor, BigDecimal total)
public static boolean isNullOuZero(Object valor)
Copyright © 2018. All rights reserved.