public final class SpecRelationGroups
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
boolean |
contains(RelationGroup relationGroup)
Checks whether the specified
RelationGroup exists in this collection. |
boolean |
containsIdentifiableWithLongName(java.lang.String longName)
Checks for existence of an
Identifiable in this collection with the specified longName . |
boolean |
containsKey(java.lang.String identifier)
Checks whether this collection contains the
Identifiable whose identfier matches that specified in the argument |
RelationGroup |
createRelationGroup(RelationGroupType relationGroupType,
Specification sourceSpecification,
Specification targetSpecification,
java.lang.String desc,
java.util.Date lastChange,
java.lang.String longName,
java.lang.String identifier,
java.lang.String alternativeId) |
RelationGroup |
find(java.lang.String longName)
Returns the first occurrence of a
RelationGroup object with the specified longName that is contained in this collection. |
RelationGroup |
get(int index)
Returns the
RelationGroup object at the specified index that is contained in this collection. |
RelationGroup |
get(java.lang.String identifier)
Returns the
RelationGroup object with the specified identifier that is contained in this collection. |
int |
getCount()
Returns the count of items in this collection.
|
java.util.Iterator<RelationGroup> |
iterator() |
void |
remove(RelationGroup relationGroup)
Removes a
RelationGroup object from this collection. |
void |
removeAll()
Removes all
RelationGroup objects from this collection |
java.util.stream.Stream<RelationGroup> |
stream() |
java.lang.String |
toString() |
public java.util.stream.Stream<RelationGroup> stream()
public java.util.Iterator<RelationGroup> iterator()
iterator
in interface java.lang.Iterable<RelationGroup>
public RelationGroup get(int index) throws java.lang.IndexOutOfBoundsException
RelationGroup
object at the specified index that is contained in this collection.index
- the index of the RelationGroup
to return from the collection, >= 0
and <
collection sizeRelationGroup
object at the specified indexjava.lang.IndexOutOfBoundsException
- if the index is < 0
or >=
countpublic RelationGroup get(java.lang.String identifier) throws UnknownIdentifierException
RelationGroup
object with the specified identifier that is contained in this collection.identifier
- the identifier of the collection member to returnRelationGroup
subclass with the specified identifierUnknownIdentifierException
- if the object identified by the Identifier parameter can't be foundpublic RelationGroup find(java.lang.String longName)
RelationGroup
object with the specified longName that is contained in this collection.longName
- the longName of the RelationGroup to return, not nullRelationGroup
subclass with the specified longName, can be nullpublic boolean contains(RelationGroup relationGroup)
RelationGroup
exists in this collection.relationGroup
- the RelationGroup
to check, not nulltrue
if the specified relationGroup exists
, false
otherwisepublic void remove(RelationGroup relationGroup) throws NotFoundException
RelationGroup
object from this collection.relationGroup
- the RelationGroup
object to remove, not nullNotFoundException
- if the specified RelationGroup
object is not in the collectionpublic void removeAll()
RelationGroup
objects from this collectionpublic RelationGroup createRelationGroup(RelationGroupType relationGroupType, Specification sourceSpecification, Specification targetSpecification, java.lang.String desc, java.util.Date lastChange, java.lang.String longName, java.lang.String identifier, java.lang.String alternativeId) throws DuplicateIdentifierException, InvalidIdentifierException
public boolean containsKey(java.lang.String identifier)
Identifiable
whose identfier matches that specified in the argumentidentifier
- the identifier of the member to check for occurrence in the collection, not nullpublic boolean containsIdentifiableWithLongName(java.lang.String longName)
Identifiable
in this collection with the specified longName
.longName
- the value of longName
to check, nullable since longName
can be nullIdentifiable
with the specified longName
exists in this collection, otherwise falsepublic java.lang.String toString()
toString
in class java.lang.Object
public int getCount()