public class SetValueImpl extends CollectionValueImpl implements SetValue
| Modifier and Type | Class and Description |
|---|---|
static class |
SetValueImpl.Accumulator |
EMPTY_ITERATOREMPTY_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_VALUEINVALID_NAME| Constructor and Description |
|---|
SetValueImpl(CollectionTypeId typeId,
Collection<? extends Object> boxedValues) |
| Modifier and Type | Method and Description |
|---|---|
SetValue |
asSetValue() |
Set<Object> |
asUnboxedObject(IdResolver idResolver)
Return the unboxed representation of this value.
|
UniqueCollectionValue |
asUniqueCollectionValue() |
static Set<Object> |
createSetOfEach(Object[] boxedValues) |
boolean |
equals(Object obj) |
SetValue |
excluding(Object value) |
SetValue |
excludingAll(CollectionValue values) |
SetValue |
flatten() |
String |
getKind() |
SetValue |
including(Object value) |
SetValue |
includingAll(CollectionValue values) |
boolean |
isOrdered() |
boolean |
isUnique() |
SetValue |
minus(UniqueCollectionValue set) |
OrderedSetValue |
sort(Comparator<Object> comparator) |
SetValue |
symmetricDifference(UniqueCollectionValue set) |
SequenceValue |
toSequenceValue() |
void |
toString(StringBuilder s,
int lengthLimit) |
asBagValue, asCollection, asCollectionValue, asEcoreObject, asEcoreObjects, asList, asObject, asOrderedSetValue, asSequenceValue, 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, unionasDouble, asElement, asInteger, asIntegerValue, asMapValue, asNavigableObject, asObjectValue, asOrderedCollectionValue, asRealValue, asTupleValue, asUnlimitedNaturalValue, getTypeName, isInvalid, isUndefinedasBagValue, 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, unlimitedNaturalValueOfasCollection, asEcoreObject, asEcoreObjects, count, excludes, excludesAll, flatten, getElements, getTypeId, includes, includesAll, intersection, intSize, isEmpty, iterable, iterator, notEmpty, product, size, unionasBagValue, asCollectionValue, asDouble, asElement, asInteger, asIntegerValue, asMapValue, asNavigableObject, asObject, asObjectValue, asOrderedCollectionValue, asOrderedSetValue, asRealValue, asSequenceValue, asTupleValue, asUnlimitedNaturalValue, isInvalid, isUndefinedforEach, spliteratorpublic SetValueImpl(CollectionTypeId typeId, Collection<? extends Object> boxedValues)
public UniqueCollectionValue asUniqueCollectionValue()
asUniqueCollectionValue in interface ValueasUniqueCollectionValue in class ValueImplpublic SetValue asSetValue()
asSetValue in interface ValueasSetValue in class CollectionValueImplpublic Set<Object> asUnboxedObject(IdResolver idResolver)
ValueA 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 ValueasUnboxedObject in class ValueImplpublic SetValue excluding(Object value)
excluding in interface CollectionValuepublic SetValue excludingAll(CollectionValue values)
excludingAll in interface CollectionValuepublic SetValue flatten()
flatten in interface CollectionValuepublic String getKind()
getKind in interface CollectionValuepublic SetValue including(Object value)
including in interface CollectionValuepublic SetValue includingAll(CollectionValue values)
includingAll in interface CollectionValuepublic boolean isOrdered()
isOrdered in interface CollectionValuepublic boolean isUnique()
isUnique in interface CollectionValuepublic SetValue minus(UniqueCollectionValue set)
minus in interface UniqueCollectionValuepublic OrderedSetValue sort(Comparator<Object> comparator)
sort in interface CollectionValuepublic SetValue symmetricDifference(UniqueCollectionValue set)
symmetricDifference in interface UniqueCollectionValuepublic SequenceValue toSequenceValue()
toSequenceValue in interface CollectionValuepublic void toString(StringBuilder s, int lengthLimit)
toString in interface ValuetoString in class CollectionValueImplCopyright © 2005, 2018 IBM Corporation and others. All Rights Reserved.