org.eclipse.ocl.examples.domain.values.impl
Class OrderedSetValueImpl
java.lang.Object
org.eclipse.ocl.examples.domain.values.util.ValuesUtil
org.eclipse.ocl.examples.domain.values.impl.ValueImpl
org.eclipse.ocl.examples.domain.values.impl.CollectionValueImpl
org.eclipse.ocl.examples.domain.values.impl.OrderedSetValueImpl
- All Implemented Interfaces:
- java.lang.Iterable<java.lang.Object>, CollectionValue, OrderedCollectionValue, OrderedSetValue, UniqueCollectionValue, Value
- Direct Known Subclasses:
- RangeOrderedSetValueImpl, SparseOrderedSetValueImpl
public abstract class OrderedSetValueImpl
- extends CollectionValueImpl
- implements OrderedSetValue
- Generated
- NOT
Fields inherited from class org.eclipse.ocl.examples.domain.values.util.ValuesUtil |
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_VALUE, ZERO_VALUE |
Fields inherited from interface org.eclipse.ocl.examples.domain.values.Value |
INVALID_NAME |
Methods inherited from class org.eclipse.ocl.examples.domain.values.impl.CollectionValueImpl |
asBagValue, asCollection, asCollectionValue, asEcoreObject, asEcoreObject, asEcoreObjects, asList, asObject, asSequenceValue, asSetValue, checkElementsAreUnique, 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 |
Methods inherited from class org.eclipse.ocl.examples.domain.values.impl.ValueImpl |
asDouble, asElement, asInteger, asIntegerValue, asNavigableObject, asObjectValue, asRealValue, asTupleValue, asUnlimitedNaturalValue, getTypeName, isInvalid, isUndefined |
Methods inherited from class org.eclipse.ocl.examples.domain.values.util.ValuesUtil |
asBagValue, asBoolean, asCollectionType, asCollectionValue, asInteger, asIntegerValue, asMetaclass, asNavigableObject, asObject, asOrderedCollectionValue, asOrderedSetValue, asRealValue, asSequenceValue, asSetValue, asString, asTupleValue, asType, asUniqueCollectionValue, asUnlimitedNaturalValue, asValue, bigDecimalValueOf, bigIntegerValueOf, characterValueOf, createBagAccumulatorValue, createBagOfEach, createBagRange, createBagValue, createCollectionAccumulatorValue, createInvalidValue, createObjectValue, createOrderedSetAccumulatorValue, createOrderedSetOfEach, createOrderedSetRange, createOrderedSetValue, createRange, createSequenceAccumulatorValue, createSequenceOfEach, createSequenceRange, createSequenceRange, createSequenceValue, createSetAccumulatorValue, createSetOfEach, createSetRange, createSetValue, createTupleOfEach, createTupleValue, createTupleValue, createTypeValue, getEcoreNumber, getTypeName, initAllStatics, integerValueOf, integerValueOf, integerValueOf, integerValueOf, integerValueOf, isBoxed, isCollectionValue, isIntegerNumber, isIntegerValue, isRealNumber, isUnboxed, isUnlimited, oclToString, realValueOf, realValueOf, realValueOf, realValueOf, realValueOf, stringValueOf, throwBooleanInvalidValueException, throwInvalidValueException, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.eclipse.ocl.examples.domain.values.CollectionValue |
asCollection, asEcoreObject, asEcoreObject, asEcoreObjects, count, excludes, excludesAll, flatten, flatten, getElements, getTypeId, includes, includesAll, including, intersection, intSize, isEmpty, iterable, iterator, notEmpty, product, size, toSequenceValue, union |
Methods inherited from interface org.eclipse.ocl.examples.domain.values.Value |
asBagValue, asCollectionValue, asDouble, asElement, asInteger, asIntegerValue, asNavigableObject, asObject, asObjectValue, asRealValue, asSequenceValue, asSetValue, asTupleValue, asUnlimitedNaturalValue, isInvalid, isUndefined, toString |
OrderedSetValueImpl
public OrderedSetValueImpl(@NonNull
CollectionTypeId typeId,
@NonNull
java.util.Collection<? extends java.lang.Object> elements)
eStaticClass
protected org.eclipse.emf.ecore.EClass eStaticClass()
-
- Overrides:
eStaticClass
in class CollectionValueImpl
- Generated
appendAll
@NonNull
public OrderedSetValue appendAll(@NonNull
OrderedCollectionValue objects)
- Specified by:
appendAll
in interface OrderedCollectionValue
asOrderedCollectionValue
@NonNull
public OrderedCollectionValue asOrderedCollectionValue()
- Specified by:
asOrderedCollectionValue
in interface Value
- Overrides:
asOrderedCollectionValue
in class ValueImpl
asOrderedSetValue
@NonNull
public OrderedSetValueImpl asOrderedSetValue()
- Specified by:
asOrderedSetValue
in interface Value
- Overrides:
asOrderedSetValue
in class CollectionValueImpl
asUniqueCollectionValue
@NonNull
public UniqueCollectionValue asUniqueCollectionValue()
- Specified by:
asUniqueCollectionValue
in interface Value
- Overrides:
asUniqueCollectionValue
in class ValueImpl
at
@Nullable
public java.lang.Object at(int index)
- Specified by:
at
in interface OrderedCollectionValue
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object
excluding
@NonNull
public OrderedSetValue excluding(@Nullable
java.lang.Object value)
- Specified by:
excluding
in interface CollectionValue
excludingAll
@NonNull
public OrderedSetValue excludingAll(@NonNull
CollectionValue values)
- Specified by:
excludingAll
in interface CollectionValue
getKind
@NonNull
public java.lang.String getKind()
- Specified by:
getKind
in interface CollectionValue
includingAll
@NonNull
public OrderedSetValue includingAll(@NonNull
CollectionValue values)
- Specified by:
includingAll
in interface CollectionValue
indexOf
@NonNull
public IntegerValue indexOf(@Nullable
java.lang.Object object)
- Specified by:
indexOf
in interface OrderedCollectionValue
insertAt
@NonNull
public OrderedSetValue insertAt(int index,
@Nullable
java.lang.Object object)
- Specified by:
insertAt
in interface OrderedCollectionValue
isOrdered
public boolean isOrdered()
- Specified by:
isOrdered
in interface CollectionValue
isUnique
public boolean isUnique()
- Specified by:
isUnique
in interface CollectionValue
minus
@NonNull
public OrderedSetValue minus(@NonNull
UniqueCollectionValue set)
- Specified by:
minus
in interface UniqueCollectionValue
prependAll
@NonNull
public OrderedSetValue prependAll(@NonNull
OrderedCollectionValue objects)
- Specified by:
prependAll
in interface OrderedCollectionValue
reverse
@NonNull
public OrderedSetValue reverse()
- Specified by:
reverse
in interface OrderedCollectionValue
sort
@NonNull
public OrderedSetValue sort(@NonNull
java.util.Comparator<java.lang.Object> comparator)
- Specified by:
sort
in interface CollectionValue
subOrderedSet
@NonNull
public OrderedSetValue subOrderedSet(int lower,
int upper)
- Specified by:
subOrderedSet
in interface OrderedSetValue
symmetricDifference
@NonNull
public OrderedSetValue symmetricDifference(@NonNull
UniqueCollectionValue set)
- Specified by:
symmetricDifference
in interface UniqueCollectionValue