public abstract class ValueUtil extends Object
Modifier and Type | Field and Description |
---|---|
static Bag<?> |
EMPTY_BAG |
static Set<Object> |
EMPTY_SET |
static Boolean |
FALSE_VALUE |
static BigInteger |
INTEGER_MAX_VALUE |
static BigInteger |
INTEGER_MIN_VALUE |
static InvalidValueException |
INVALID_VALUE |
static BigInteger |
LONG_MAX_VALUE |
static BigInteger |
LONG_MIN_VALUE |
static String |
NULL_STRING |
static NullValue |
NULL_VALUE |
static IntegerValue |
ONE_VALUE |
static Boolean |
TRUE_VALUE |
static UnlimitedNaturalValue |
UNLIMITED_ONE_VALUE |
static UnlimitedValue |
UNLIMITED_VALUE |
static IntegerValue |
ZERO_VALUE |
Constructor and Description |
---|
ValueUtil() |
public static final String NULL_STRING
public static Bag<?> EMPTY_BAG
public static final BigInteger INTEGER_MAX_VALUE
public static final BigInteger INTEGER_MIN_VALUE
public static final BigInteger LONG_MAX_VALUE
public static final BigInteger LONG_MIN_VALUE
public static final Boolean FALSE_VALUE
public static final InvalidValueException INVALID_VALUE
public static final NullValue NULL_VALUE
public static final IntegerValue ONE_VALUE
public static final UnlimitedNaturalValue UNLIMITED_ONE_VALUE
public static final Boolean TRUE_VALUE
public static final UnlimitedValue UNLIMITED_VALUE
public static final IntegerValue ZERO_VALUE
public static CollectionType asCollectionType(Object value)
public static CollectionValue asCollectionValue(Object value)
public static IntegerValue asIntegerValue(Object value)
@Deprecated public static EObject asNavigableObject(Object value, Object navigation, Evaluator evaluator)
public static EObject asNavigableObject(Object value, Object navigation, Executor executor)
public static OrderedCollectionValue asOrderedCollectionValue(Object value)
public static OrderedSetValue asOrderedSetValue(Object value)
public static SequenceValue asSequenceValue(Object value)
public static TupleValue asTupleValue(Object value)
public static UniqueCollectionValue asUniqueCollectionValue(Object value)
public static UnlimitedNaturalValue asUnlimitedNaturalValue(Object value)
public static BigDecimal bigDecimalValueOf(Object anObject)
public static BigInteger bigIntegerValueOf(Object anObject)
public static byte byteValueOf(Object anObject)
public static int computeCollectionHashCode(boolean isOrdered, boolean isUnique, Iterable<?> elements)
public static BagValue.Accumulator createBagAccumulatorValue(CollectionTypeId collectedId)
public static BagValue createBagOfEach(CollectionTypeId typeId, Object... boxedValues)
public static BagValue createBagRange(CollectionTypeId typeId, Object... values)
public static BagValue createBagValue(CollectionTypeId typeId, Bag<? extends Object> boxedValues)
public static CollectionValue.Accumulator createCollectionAccumulatorValue(CollectionTypeId collectedId)
public static InvalidValueException createInvalidValue(Exception e)
public static MapValue createMapValue(TypeId keyTypeId, TypeId valueTypeId, Map<Object,Object> boxedValues)
public static ObjectValue createObjectValue(TypeId typeId, Object object)
public static OrderedSetValue.Accumulator createOrderedSetAccumulatorValue(CollectionTypeId collectedId)
public static OrderedSetValue createOrderedSetOfEach(CollectionTypeId typeId, Object... boxedValues)
public static OrderedSetValue createOrderedSetRange(CollectionTypeId typeId, Object... values)
public static OrderedSetValue createOrderedSetValue(CollectionTypeId typeId, Collection<? extends Object> boxedValues)
public static IntegerRange createRange(IntegerValue firstInteger, IntegerValue lastInteger)
public static SequenceValue.Accumulator createSequenceAccumulatorValue(CollectionTypeId collectedId)
public static SequenceValue createSequenceOfEach(CollectionTypeId typeId, Object... boxedValues)
public static SequenceValue createSequenceRange(CollectionTypeId typeId, IntegerRange range)
public static SequenceValue createSequenceRange(CollectionTypeId typeId, Object... values)
public static SequenceValue createSequenceValue(CollectionTypeId typeId, List<? extends Object> boxedValues)
public static SetValue.Accumulator createSetAccumulatorValue(CollectionTypeId collectedId)
public static SetValue createSetOfEach(CollectionTypeId typeId, Object... boxedValues)
public static SetValue createSetRange(CollectionTypeId typeId, Object... values)
public static SetValue createSetValue(CollectionTypeId typeId, Collection<? extends Object> boxedValues)
public static TupleValue createTupleValue(TupleTypeId typeId, Map<? extends TuplePartId,Object> values)
public static TupleValue createTupleOfEach(TupleTypeId typeId, Object... values)
public static double doubleValueOf(Object anObject)
public static float floatValueOf(Object anObject)
@Deprecated public static Executor getExecutor(Evaluator evaluator)
public static boolean initAllStatics()
Returns true if this invocation performed the initialization.
public static int intValueOf(Object anObject)
public static IntegerValue integerValueOf(int value)
public static IntegerValue integerValueOf(long value)
public static IntegerValue integerValueOf(BigInteger value)
public static IntegerValue integerValueOf(Object aValue)
public static IntegerValue integerValueOf(String aValue)
aValue
- the string representation of a (non-negative) integer numberpublic static boolean isBoxed(Object object)
public static CollectionValue isCollectionValue(Object value)
public static boolean isEcore(Object object)
public static boolean isIntegerNumber(Number aNumber)
public static IntegerValue isIntegerValue(Object value)
public static boolean isRealNumber(Number aNumber)
public static boolean isUnboxed(Object object)
public static boolean isUnlimited(Object value)
public static long longValueOf(Object anObject)
public static NumberValue numberValueOf(Number aNumber)
public static RealValue realValueOf(double value)
public static RealValue realValueOf(BigDecimal value)
public static RealValue realValueOf(IntegerValue integerValue)
public static short shortValueOf(Object anObject)
public static boolean throwBooleanInvalidValueException(String string)
public static Object throwInvalidValueException()
public static void toString(Object value, StringBuilder s, int sizeLimit)
public static <T> Iterable<T> typedIterable(Class<T> elementClass, CollectionValue collectionValue)
public static UnlimitedNaturalValue unlimitedNaturalValueOf(BigInteger value)
public static UnlimitedNaturalValue unlimitedNaturalValueOf(int value)
public static UnlimitedNaturalValue unlimitedNaturalValueOf(long value)
public static UnlimitedNaturalValue unlimitedNaturalValueOf(Object aValue)
public static UnlimitedNaturalValue unlimitedNaturalValueOf(String aValue)
aValue
- the string representation of a (non-negative) integer numberCopyright © 2005, 2018 IBM Corporation and others. All Rights Reserved.