Modifier and Type | Class and Description |
---|---|
static class |
DataValues.ObjectValueBuilder |
Modifier and Type | Method and Description |
---|---|
static ArrayValue<BigDecimal> |
arrayOf(BigDecimal... items)
Returns a new
ArrayValue . |
static ArrayValue<Boolean> |
arrayOf(Boolean... items)
Returns a new
ArrayValue . |
static <T> ArrayValue<T> |
arrayOf(DataValue<T>... items)
Returns a new
ArrayValue . |
static ArrayValue<Integer> |
arrayOf(Integer... items)
Returns a new
ArrayValue . |
static ArrayValue<Long> |
arrayOf(Long... items)
Returns a new
ArrayValue . |
static ArrayValue<String> |
arrayOf(String... items)
Returns a new
ArrayValue . |
static ArrayValue<Object> |
arrayOfAny(DataValue<?>... items)
Returns a new
ArrayValue . |
static ArrayValue<Object> |
arrayOfAny(List<DataValue<?>> items)
Returns a new
ArrayValue . |
static ArrayValue<String> |
arrayOfFormatted(String format,
String... items)
Returns a new
ArrayValue . |
static Base64Value |
base64Of(String value)
Returns a new
Base64Value . |
static BigDecimal |
bigDecimalNull()
Returns a null
BigDecimal . |
static BigDecimal |
bigDecimalOf(DataValue<?> value)
Returns a new
BigDecimal . |
static BigDecimal |
bigDecimalOf(String value)
Returns a new
BigDecimal . |
static List<BigDecimal> |
bigDecimals(String... values)
Returns a list of
BigDecimal values. |
static DateValue |
dateOf(String value)
Returns a new
DateValue . |
static DateTimeValue |
dateTimeOf(String value)
Returns a new
DateTimeValue . |
static EmailValue |
emailOf(String value)
Returns a new
EmailValue . |
static Integer |
integerOf(BigDecimal value)
Returns the given
BigDecimal value as an Integer. |
static Integer |
integerOf(DataValue<?> value)
Returns a new
Integer . |
static DataValue<?> |
integerValueOf(String format,
DataValue<?> value)
Returns a INTEGER type value defined by the given format.
|
static boolean |
isMultipleOf(BigDecimal value,
BigDecimal factor)
Returns true if the given value is a multiple of the given factor.
|
static boolean |
isPatternedFormat(String format)
Returns true if the given string format required a specific pattern.
|
static Long |
longOf(BigDecimal value)
Returns the given
BigDecimal value as Long. |
static Long |
longOf(DataValue<?> value)
Returns a new
Long . |
static BigDecimal |
multipleAbove(BigDecimal value,
BigDecimal multipleOf)
Return the smallest number greater than (or, if inclusive, equal to) the given value that satisfies the given (not-)multiple-of constraints.
|
static BigDecimal |
multipleBelow(BigDecimal value,
BigDecimal multipleOf)
Return the largest number less than (or, if inclusive, equal to) the given value that satisfies the given (not-)multiple-of constraints.
|
static NullValue |
noValue() |
static NullValue |
nullValue() |
static DataValue<?> |
numberValueOf(BigDecimal value)
Returns a new numeric
DataValue with most specific type for the given value. |
static DataValues.ObjectValueBuilder |
object() |
static BigDecimal |
roundDown(BigDecimal value)
Returns a new integral
BigDecimal . |
static BigDecimal |
roundUp(BigDecimal value)
Returns a new integral
BigDecimal . |
static Integer |
stringFormatMax(String format)
Returns the maximum length of a string in the given format.
|
static Integer |
stringFormatMin(String format)
Returns the minimum length of a string in the given format.
|
static String |
stringOf(DataValue<?> value)
Returns a new
String . |
static StringValue |
stringOf(String value)
Returns a new
StringValue . |
static StringValue |
stringOf(String format,
String value)
Returns a new formatted
StringValue . |
static UuidValue |
uuidOf(String value)
Returns a new
UuidValue . |
static DecimalValue |
valueOf(BigDecimal value)
Returns a new
DecimalValue . |
static BooleanValue |
valueOf(boolean value)
Returns a new
BooleanValue . |
static BinaryValue |
valueOf(byte[] value)
Returns a new
BinaryValue . |
static IntegerValue |
valueOf(int value)
Returns a new
IntegerValue . |
static LongValue |
valueOf(long value)
Returns a new
LongValue . |
@SafeVarargs public static <T> ArrayValue<T> arrayOf(DataValue<T>... items)
ArrayValue
.public static ArrayValue<String> arrayOf(String... items)
ArrayValue
.public static ArrayValue<String> arrayOfFormatted(String format, String... items)
ArrayValue
.public static ArrayValue<Integer> arrayOf(Integer... items)
ArrayValue
.public static ArrayValue<Long> arrayOf(Long... items)
ArrayValue
.public static ArrayValue<Boolean> arrayOf(Boolean... items)
ArrayValue
.public static ArrayValue<BigDecimal> arrayOf(BigDecimal... items)
ArrayValue
.public static ArrayValue<Object> arrayOfAny(List<DataValue<?>> items)
ArrayValue
.public static ArrayValue<Object> arrayOfAny(DataValue<?>... items)
ArrayValue
.public static BinaryValue valueOf(byte[] value)
BinaryValue
.public static BooleanValue valueOf(boolean value)
BooleanValue
.public static DecimalValue valueOf(BigDecimal value)
DecimalValue
.public static DataValue<?> numberValueOf(BigDecimal value)
DataValue
with most specific type for the given value.public static IntegerValue valueOf(int value)
IntegerValue
.public static DataValue<?> integerValueOf(String format, DataValue<?> value)
public static NullValue nullValue()
public static NullValue noValue()
public static DataValues.ObjectValueBuilder object()
public static StringValue stringOf(String value)
StringValue
.public static StringValue stringOf(String format, String value)
StringValue
.public static Base64Value base64Of(String value)
Base64Value
.public static DateTimeValue dateTimeOf(String value)
DateTimeValue
.public static EmailValue emailOf(String value)
EmailValue
.public static BigDecimal bigDecimalOf(String value)
BigDecimal
.public static List<BigDecimal> bigDecimals(String... values)
BigDecimal
values.public static BigDecimal roundDown(BigDecimal value)
BigDecimal
.public static BigDecimal roundUp(BigDecimal value)
BigDecimal
.public static BigDecimal bigDecimalOf(DataValue<?> value)
BigDecimal
.public static BigDecimal bigDecimalNull()
BigDecimal
.public static Integer integerOf(BigDecimal value)
BigDecimal
value as an Integer.public static Long longOf(BigDecimal value)
BigDecimal
value as Long.public static boolean isMultipleOf(BigDecimal value, BigDecimal factor)
public static BigDecimal multipleBelow(BigDecimal value, BigDecimal multipleOf)
public static BigDecimal multipleAbove(BigDecimal value, BigDecimal multipleOf)
public static boolean isPatternedFormat(String format)
public static Integer stringFormatMax(String format)
Copyright © 2024 The Cornutum Project. All rights reserved.