public class TupleValueImpl extends ValueImpl implements TupleValue
Modifier and Type | Field and Description |
---|---|
protected TupleTypeId |
tupleTypeId |
EMPTY_BAG, EMPTY_SET, FALSE_VALUE, INTEGER_MAX_VALUE, INTEGER_MIN_VALUE, INVALID_VALUE, LONG_MAX_VALUE, LONG_MIN_VALUE, NULL_STRING, NULL_VALUE, ONE_VALUE, TRUE_VALUE, UNLIMITED_ONE_VALUE, UNLIMITED_VALUE, ZERO_VALUE
INVALID_NAME
Constructor and Description |
---|
TupleValueImpl(TupleTypeId tupleTypeId,
java.util.Map<? extends TuplePartId,java.lang.Object> values)
Initializes me with a map of part values.
|
TupleValueImpl(TupleTypeId tupleTypeId,
java.lang.Object... values)
Convenience constructor to initialize me with a list of values as
required by the Collection::product() operation.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
asObject() |
TupleValue |
asTupleValue() |
boolean |
equals(java.lang.Object o) |
protected org.eclipse.emf.ecore.EClass |
eStaticClass() |
TupleTypeId |
getTypeId()
Obtains the tuple's type.
|
java.lang.Object |
getValue(int index)
Queries the value of the specified tuple part at 0-based index corresponding to the position of the
required part-name in the alphabetically sorted list of all part-names.
|
java.lang.Object |
getValue(TuplePartId partId)
Queries the value of the specified tuple part.
|
int |
hashCode() |
java.lang.String |
toString() |
asBagValue, asCollectionValue, asDouble, asEcoreObject, asElement, asInteger, asIntegerValue, asMapValue, asNavigableObject, asObjectValue, asOrderedCollectionValue, asOrderedSetValue, asRealValue, asSequenceValue, asSetValue, asUnboxedObject, asUniqueCollectionValue, asUnlimitedNaturalValue, getTypeName, isInvalid, isUndefined, toString
asBagValue, asBoolean, asClass, asCollectionType, asCollectionValue, asInteger, asIntegerValue, asMapType, asMapValue, asNavigableObject, asNavigableObject, asObject, asOrderedCollectionValue, asOrderedSetValue, asRealValue, asSequenceValue, asSetValue, asString, asTupleValue, asType, asUniqueCollectionValue, asUnlimitedNaturalValue, asValue, bigDecimalValueOf, bigIntegerValueOf, byteValueOf, characterValueOf, computeCollectionHashCode, createBagAccumulatorValue, createBagOfEach, createBagRange, createBagValue, createCollectionAccumulatorValue, createInvalidValue, createMapEntry, createMapOfEach, createMapValue, createObjectValue, createOrderedSetAccumulatorValue, createOrderedSetOfEach, createOrderedSetRange, createOrderedSetValue, createRange, createSequenceAccumulatorValue, createSequenceOfEach, createSequenceRange, createSequenceRange, createSequenceValue, createSetAccumulatorValue, createSetOfEach, createSetRange, createSetValue, createTupleOfEach, createTupleValue, doubleValueOf, floatValueOf, getElementIdName, getExecutor, getTypeName, initAllStatics, integerValueOf, integerValueOf, integerValueOf, integerValueOf, integerValueOf, intValueOf, isBoxed, isCollectionValue, isEcore, isIntegerNumber, isIntegerValue, isRealNumber, isUnboxed, isUnlimited, longValueOf, numberValueOf, oclToString, realValueOf, realValueOf, realValueOf, realValueOf, realValueOf, shortValueOf, stringValueOf, throwBooleanInvalidValueException, throwInvalidValueException, throwUnsupportedCompareTo, toString, typedIterable, unlimitedNaturalValueOf, unlimitedNaturalValueOf, unlimitedNaturalValueOf, unlimitedNaturalValueOf, unlimitedNaturalValueOf
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
asBagValue, asCollectionValue, asDouble, asEcoreObject, asElement, asInteger, asIntegerValue, asMapValue, asNavigableObject, asObjectValue, asOrderedCollectionValue, asOrderedSetValue, asRealValue, asSequenceValue, asSetValue, asUnboxedObject, asUniqueCollectionValue, asUnlimitedNaturalValue, isInvalid, isUndefined, toString
@NonNull protected final TupleTypeId tupleTypeId
public TupleValueImpl(@NonNull TupleTypeId tupleTypeId, @NonNull java.util.Map<? extends TuplePartId,java.lang.Object> values)
tupleTypeId
- my typevalues
- my partspublic TupleValueImpl(@NonNull TupleTypeId tupleTypeId, @NonNull java.lang.Object... values)
tupleTypeId
- my typevalues
- my values which are aligned to the tupleTypeId.getParts()protected org.eclipse.emf.ecore.EClass eStaticClass()
eStaticClass
in class ValueImpl
@NonNull public TupleValue asTupleValue()
asTupleValue
in interface Value
asTupleValue
in class ValueImpl
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
@NonNull public TupleTypeId getTypeId()
TupleValue
getTypeId
in interface TupleValue
getTypeId
in interface Value
@Nullable public java.lang.Object getValue(@NonNull TuplePartId partId)
TupleValue
getValue
in interface TupleValue
partId
- the tuple part (as an attribute)@Nullable public java.lang.Object getValue(int index)
TupleValue
getValue
in interface TupleValue
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object