class AVUtils
extends java.lang.Object
KITTY_COLUMN_ACCEPTED_VALUES
Created by akaish on 03.04.18.Constructor and Description |
---|
AVUtils() |
Modifier and Type | Method and Description |
---|---|
(package private) static void |
checkByteValue(java.lang.Byte byteValue,
KittyColumnConfiguration column,
java.lang.Class modelClass)
Checks if provided byteValue suites constraint described in
KITTY_COLUMN_ACCEPTED_VALUES.acceptedValuesByte() and throws
KittyRuntimeException if this value is restricted one. |
(package private) static void |
checkDoubleValue(java.lang.Double doubleValue,
KittyColumnConfiguration column,
java.lang.Class modelClass)
Checks if provided doubleValue suites constraint described in
KITTY_COLUMN_ACCEPTED_VALUES.acceptedValuesDouble() and throws
KittyRuntimeException if this value is restricted one. |
(package private) static void |
checkFloatValue(java.lang.Float floatValue,
KittyColumnConfiguration column,
java.lang.Class modelClass)
Checks if provided floatValue suites constraint described in
KITTY_COLUMN_ACCEPTED_VALUES.acceptedValuesFloat() and throws
KittyRuntimeException if this value is restricted one. |
(package private) static void |
checkIntValue(java.lang.Integer intValue,
KittyColumnConfiguration column,
java.lang.Class modelClass)
Checks if provided intValue suites constraint described in
KITTY_COLUMN_ACCEPTED_VALUES.acceptedValuesInt() and throws
KittyRuntimeException if this value is restricted one. |
(package private) static void |
checkLongValue(java.lang.Long longValue,
KittyColumnConfiguration column,
java.lang.Class modelClass)
Checks if provided doubleValue suites constraint described in
KITTY_COLUMN_ACCEPTED_VALUES.acceptedValuesLong() and throws
KittyRuntimeException if this value is restricted one. |
(package private) static void |
checkShortValue(java.lang.Short shortValue,
KittyColumnConfiguration column,
java.lang.Class modelClass)
Checks if provided shortValue suites constraint described in
KITTY_COLUMN_ACCEPTED_VALUES.acceptedValuesShort() and throws
KittyRuntimeException if this value is restricted one. |
(package private) static void |
checkStringValue(java.lang.String value,
KittyColumnConfiguration column,
java.lang.Class modelClass)
Checks if provided stringValue suites constraint described in
KITTY_COLUMN_ACCEPTED_VALUES.acceptedValuesInt() and throws
KittyRuntimeException if this value is restricted one. |
static final void checkStringValue(java.lang.String value, KittyColumnConfiguration column, java.lang.Class modelClass)
KITTY_COLUMN_ACCEPTED_VALUES.acceptedValuesInt()
and throws
KittyRuntimeException
if this value is restricted one.value
- String value to checkcolumn
- column configurationmodelClass
- modelClass class for generating exception infostatic final void checkIntValue(java.lang.Integer intValue, KittyColumnConfiguration column, java.lang.Class modelClass)
KITTY_COLUMN_ACCEPTED_VALUES.acceptedValuesInt()
and throws
KittyRuntimeException
if this value is restricted one.intValue
- int value to checkcolumn
- column configurationmodelClass
- modelClass class for generating exception infostatic final void checkByteValue(java.lang.Byte byteValue, KittyColumnConfiguration column, java.lang.Class modelClass)
KITTY_COLUMN_ACCEPTED_VALUES.acceptedValuesByte()
and throws
KittyRuntimeException
if this value is restricted one.byteValue
- byte value to checkcolumn
- column configurationmodelClass
- modelClass class for generating exception infostatic final void checkDoubleValue(java.lang.Double doubleValue, KittyColumnConfiguration column, java.lang.Class modelClass)
KITTY_COLUMN_ACCEPTED_VALUES.acceptedValuesDouble()
and throws
KittyRuntimeException
if this value is restricted one.doubleValue
- double value to checkcolumn
- column configurationmodelClass
- modelClass class for generating exception infostatic final void checkLongValue(java.lang.Long longValue, KittyColumnConfiguration column, java.lang.Class modelClass)
KITTY_COLUMN_ACCEPTED_VALUES.acceptedValuesLong()
and throws
KittyRuntimeException
if this value is restricted one.longValue
- long value to checkcolumn
- column configurationmodelClass
- modelClass class for generating exception infostatic final void checkShortValue(java.lang.Short shortValue, KittyColumnConfiguration column, java.lang.Class modelClass)
KITTY_COLUMN_ACCEPTED_VALUES.acceptedValuesShort()
and throws
KittyRuntimeException
if this value is restricted one.shortValue
- short value to checkcolumn
- column configurationmodelClass
- modelClass class for generating exception infostatic final void checkFloatValue(java.lang.Float floatValue, KittyColumnConfiguration column, java.lang.Class modelClass)
KITTY_COLUMN_ACCEPTED_VALUES.acceptedValuesFloat()
and throws
KittyRuntimeException
if this value is restricted one.floatValue
- float value to checkcolumn
- column configurationmodelClass
- modelClass class for generating exception info