public abstract class OrderedSetValueImpl extends CollectionValueImpl implements OrderedSetValue
OrderedSetValue.Accumulator
EMPTY_ITERATOR
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 |
---|
OrderedSetValueImpl(CollectionTypeId typeId,
Collection<? extends Object> elements) |
asBagValue, asCollection, asCollectionValue, asEcoreObject, asEcoreObjects, asList, asObject, asSequenceValue, asSetValue, count, excludes, excludesAll, flatten, getBagTypeId, getElements, getElementTypeId, getObject, getOrderedSetTypeId, getSequenceTypeId, getSetTypeId, getTypeId, hashCode, includes, includesAll, initStatics, intersection, intSize, isEmpty, iterable, iterator, notEmpty, product, size, toString, toString, union
asDouble, asElement, asInteger, asIntegerValue, asMapValue, asNavigableObject, asObjectValue, asRealValue, asTupleValue, asUnlimitedNaturalValue, getTypeName, isInvalid, isUndefined
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
append, first, last, prepend
asCollection, asEcoreObject, asEcoreObjects, count, excludes, excludesAll, flatten, flatten, getElements, getTypeId, includes, includesAll, including, intersection, intSize, isEmpty, iterable, iterator, notEmpty, product, size, toSequenceValue, union
asBagValue, asCollectionValue, asDouble, asElement, asInteger, asIntegerValue, asMapValue, asNavigableObject, asObject, asObjectValue, asRealValue, asSequenceValue, asSetValue, asTupleValue, asUnlimitedNaturalValue, isInvalid, isUndefined, toString
forEach, spliterator
public OrderedSetValueImpl(CollectionTypeId typeId, Collection<? extends Object> elements)
public OrderedSetValue appendAll(OrderedCollectionValue objects)
appendAll
in interface OrderedCollectionValue
public OrderedCollectionValue asOrderedCollectionValue()
asOrderedCollectionValue
in interface Value
asOrderedCollectionValue
in class ValueImpl
public OrderedSetValueImpl asOrderedSetValue()
asOrderedSetValue
in interface Value
asOrderedSetValue
in class CollectionValueImpl
public LinkedHashSet<Object> asUnboxedObject(IdResolver idResolver)
Value
A thrown exception for an invalid OCL value.
Java-null for a null OCL value
Objects for other things, Bag/Set/OrderedSet/List for collections
asUnboxedObject
in interface Value
asUnboxedObject
in class ValueImpl
public UniqueCollectionValue asUniqueCollectionValue()
asUniqueCollectionValue
in interface Value
asUniqueCollectionValue
in class ValueImpl
public Object at(int index)
at
in interface OrderedCollectionValue
public OrderedSetValue excluding(Object value)
excluding
in interface CollectionValue
public OrderedSetValue excludingAll(CollectionValue values)
excludingAll
in interface CollectionValue
public String getKind()
getKind
in interface CollectionValue
public OrderedSetValue includingAll(CollectionValue values)
includingAll
in interface CollectionValue
public IntegerValue indexOf(Object object)
indexOf
in interface OrderedCollectionValue
public OrderedSetValue insertAt(int index, Object object)
insertAt
in interface OrderedCollectionValue
public boolean isOrdered()
isOrdered
in interface CollectionValue
public boolean isUnique()
isUnique
in interface CollectionValue
public OrderedSetValue minus(UniqueCollectionValue set)
minus
in interface UniqueCollectionValue
public OrderedSetValue prependAll(OrderedCollectionValue objects)
prependAll
in interface OrderedCollectionValue
public OrderedSetValue reverse()
reverse
in interface OrderedCollectionValue
public OrderedSetValue sort(Comparator<Object> comparator)
sort
in interface CollectionValue
public OrderedSetValue subOrderedSet(int lower, int upper)
subOrderedSet
in interface OrderedSetValue
public OrderedSetValue symmetricDifference(UniqueCollectionValue set)
symmetricDifference
in interface UniqueCollectionValue
Copyright © 2005, 2018 IBM Corporation and others. All Rights Reserved.