@Documented @Retention(value=RUNTIME) @Target(value=TYPE) public @interface Adjust
SingleString
, SingleInt
, SingleLong
, SingleDecimal
, or
SingleDouble
subclasses, to ensure their values are always valid. Doing so tends to push data normalisation
out to the edges of an application, where it receives input from the outside world, freeing the internal logic from
the need to think about the possibility of invalid values.Modifier and Type | Optional Element and Description |
---|---|
double[] |
ceiling
Adjust numeric values to a maximum (inclusive) value.
|
double[] |
floor
Adjust numeric values to a minimum (inclusive) value.
|
boolean |
intern
Intern string values.
|
double[] |
roundToIncrement
Round numeric values to an increment (multiple).
|
LetterCase[] |
transformTo
Transform string values.
|
Trim[] |
trim
Trim from the beginning and/or end of string values.
|
public abstract double[] floor
public abstract double[] ceiling
public abstract Trim[] trim
public abstract LetterCase[] transformTo
public abstract boolean intern
public abstract double[] roundToIncrement
RoundingMode.HALF_UP
Copyright © 2022. All rights reserved.