public class Conversions extends Object
| Constructor and Description |
|---|
Conversions() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
toBoolean(Object value,
EvaluationContext ctx)
Tries conversion of any value to a boolean (called a 'Logical Value' in Excel lingo)
|
static org.threeten.bp.LocalDate |
toDate(Object value,
EvaluationContext ctx)
Tries conversion of any value to a date
|
static org.threeten.bp.temporal.Temporal |
toDateOrDateTime(Object value,
EvaluationContext ctx)
Tries conversion of any value to a date or a datetime
|
static org.threeten.bp.ZonedDateTime |
toDateTime(Object value,
EvaluationContext ctx)
Tries conversion of any value to a date
|
static BigDecimal |
toDecimal(Object value,
EvaluationContext ctx)
Tries conversion of any value to a decimal
|
static int |
toInteger(Object value,
EvaluationContext ctx)
Tries conversion of any value to an integer
|
static String |
toRepr(Object value,
EvaluationContext ctx)
Converts a value back to its representation form, e.g.
|
static org.apache.commons.lang3.tuple.Pair<Object,Object> |
toSame(Object value1,
Object value2,
EvaluationContext ctx)
Converts a pair of arguments to their most-likely types.
|
static String |
toString(Object value,
EvaluationContext ctx)
Tries conversion of any value to a string
|
static org.threeten.bp.OffsetTime |
toTime(Object value,
EvaluationContext ctx)
Tries conversion of any value to a time
|
public static boolean toBoolean(Object value, EvaluationContext ctx)
public static int toInteger(Object value, EvaluationContext ctx)
public static BigDecimal toDecimal(Object value, EvaluationContext ctx)
public static String toString(Object value, EvaluationContext ctx)
public static org.threeten.bp.LocalDate toDate(Object value, EvaluationContext ctx)
public static org.threeten.bp.ZonedDateTime toDateTime(Object value, EvaluationContext ctx)
public static org.threeten.bp.temporal.Temporal toDateOrDateTime(Object value, EvaluationContext ctx)
public static org.threeten.bp.OffsetTime toTime(Object value, EvaluationContext ctx)
public static org.apache.commons.lang3.tuple.Pair<Object,Object> toSame(Object value1, Object value2, EvaluationContext ctx)
public static String toRepr(Object value, EvaluationContext ctx)
Copyright © 2016. All rights reserved.