public class RangeSequenceValueImpl extends SequenceValueImpl
SequenceValue.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 |
---|
RangeSequenceValueImpl(CollectionTypeId typeId,
IntegerRange range) |
Modifier and Type | Method and Description |
---|---|
SequenceValue |
append(Object value) |
IntegerValue |
count(Object value)
Implementation of the OCL
Collection::count(object : T) : Integer
operation.
|
boolean |
equals(Object obj) |
Value |
first() |
SequenceValue |
flatten() |
IntegerRange |
getElements() |
SequenceValue |
including(Object value) |
Value |
last() |
SequenceValue |
prepend(Object value) |
void |
toString(StringBuilder s,
int lengthLimit) |
appendAll, asList, asOrderedCollectionValue, asSequenceValue, asUnboxedObject, at, excluding, excludingAll, getKind, includingAll, indexOf, insertAt, isOrdered, isUnique, prependAll, reverse, sort, subSequence, toSequenceValue
asBagValue, asCollection, asCollectionValue, asEcoreObject, asEcoreObjects, asObject, asOrderedSetValue, asSetValue, excludes, excludesAll, flatten, getBagTypeId, getElementTypeId, getObject, getOrderedSetTypeId, getSequenceTypeId, getSetTypeId, getTypeId, hashCode, includes, includesAll, initStatics, intersection, intSize, isEmpty, iterable, iterator, notEmpty, product, size, toString, union
asDouble, asElement, asInteger, asIntegerValue, asMapValue, asNavigableObject, asObjectValue, asRealValue, asTupleValue, asUniqueCollectionValue, 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
asCollection, asEcoreObject, asEcoreObjects, excludes, excludesAll, flatten, getTypeId, includes, includesAll, intersection, intSize, isEmpty, iterable, iterator, notEmpty, product, size, union
asBagValue, asCollectionValue, asDouble, asElement, asInteger, asIntegerValue, asMapValue, asNavigableObject, asObject, asObjectValue, asOrderedSetValue, asRealValue, asSetValue, asTupleValue, asUniqueCollectionValue, asUnlimitedNaturalValue, isInvalid, isUndefined
forEach, spliterator
public RangeSequenceValueImpl(CollectionTypeId typeId, IntegerRange range)
public SequenceValue append(Object value)
append
in interface OrderedCollectionValue
append
in class SequenceValueImpl
public IntegerValue count(Object value)
CollectionValueImpl
count
in interface CollectionValue
count
in class CollectionValueImpl
value
- an objectpublic boolean equals(Object obj)
equals
in class SequenceValueImpl
public Value first()
first
in interface OrderedCollectionValue
first
in class SequenceValueImpl
public SequenceValue flatten()
flatten
in interface CollectionValue
flatten
in class SequenceValueImpl
public IntegerRange getElements()
getElements
in interface CollectionValue
getElements
in class SequenceValueImpl
public SequenceValue including(Object value)
including
in interface CollectionValue
including
in class SequenceValueImpl
public Value last()
last
in interface OrderedCollectionValue
last
in class SequenceValueImpl
public SequenceValue prepend(Object value)
prepend
in interface OrderedCollectionValue
prepend
in class SequenceValueImpl
public void toString(StringBuilder s, int lengthLimit)
toString
in interface Value
toString
in class SequenceValueImpl
Copyright © 2005, 2018 IBM Corporation and others. All Rights Reserved.