E
- type of the elements in the collection@External public static interface GeneralCollection.Unordered<E>
isOrdered()
method of subtypes must return false
.
Ordered collections contain the elements in a fixed order, that is, their elements can be referenced with an index. This order does not have to fit the natural ordering or any other kind of ordering of the elements. It is based on the order in which the elements were put into the collection.
See the documentation of Model
for an overview on modeling in
JtxtUML.
Modifier and Type | Method and Description |
---|---|
@External int |
getLowerBound()
Returns the lower bound of this collection, that is, the minimum number
of elements it may contain.
|
@External int |
getUpperBound()
Returns the upper bound of this collection, that is, the maximum number
of elements it may contain.
|
default @External boolean |
isOrdered()
Tells whether this txtUML API collection is ordered or not.
|
@External boolean |
isUnique()
Tells whether this txtUML API collection is a unique collection or not.
|
@External default @External boolean isOrdered()
Ordered collections contain the elements in a fixed order, that is, their elements can be referenced with an index. This order does not have to fit the natural ordering or any other kind of ordering of the elements. It is based on the order in which the elements were put into the collection.
@External @External boolean isUnique()
Unique collections cannot contain multiple elements which are equal.
@External @External int getLowerBound()
@External @External int getUpperBound()
GeneralCollection.INFINITE_BOUND
, which means that this
collection has no upper bound.