public class EprInfoSet
extends java.lang.Object
| Constructor and Description |
|---|
EprInfoSet()
Constructor.
|
EprInfoSet(EprInfo epr)
Constructor, adds an
EprInfo element to this set. |
EprInfoSet(EprInfoSet set)
Copy Constructor.
|
EprInfoSet(int initialCapacity)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(EprInfo eprinfo)
Adds a
EprInfo to this set. |
void |
addAll(EprInfoSet eprInfoSet)
Adds all
EprInfo contained within eprinfos to this instance. |
boolean |
contains(EprInfo infoSet)
Checks whether given
EprInfo is already present within this set. |
boolean |
containsAll(EprInfoSet otherInfoSet)
Checks whether all items within the given
EprInfoSet are present within this set. |
boolean |
containsEprAddress(AttributedURI address) |
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
boolean |
isReadOnly()
Returns whether this set is read-only or not.
|
Iterator |
iterator() |
boolean |
remove(EprInfo eprInfo)
Removes a
EprInfo from this set. |
void |
setReadOnly()
Sets this set to read-only.
|
int |
size()
Returns the current size of this set.
|
EprInfo[] |
toArray()
Returns an array containing the
EprInfo objects from this set. |
java.lang.String |
toString() |
public EprInfoSet()
public EprInfoSet(int initialCapacity)
public EprInfoSet(EprInfo epr)
EprInfo element to this set.epr - EprInfo element to be added to the new set.public EprInfoSet(EprInfoSet set)
public Iterator iterator()
public EprInfo[] toArray()
EprInfo objects from this set.EprInfo objects from this set.public boolean contains(EprInfo infoSet)
EprInfo is already present within this set.public boolean containsAll(EprInfoSet otherInfoSet)
EprInfoSet are present within this set.otherInfoSet - the items to check the presence oftrue if all objects within otherInfoSet are contained by this set,
false if at least one of them is notpublic int size()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean isReadOnly()
A read-only set will not allow any modification.
true if the set is read-only, false otherwise.public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic void setReadOnly()
A read-only set will not allow any modification.
public boolean containsEprAddress(AttributedURI address)
public void add(EprInfo eprinfo)
eprinfo - The EprInfo to be added.DataStructure.add(Object)public void addAll(EprInfoSet eprInfoSet)
EprInfo contained within eprinfos to this instance.
A UnsupportedOperationException is thrown if this set is read-only.
eprInfoSet - the set of EprInfo to add.public boolean remove(EprInfo eprInfo)
EprInfo from this set.
A UnsupportedOperationException is thrown if this set is read-only.
eprInfo - The EprInfo to be removed.true if the argument was a component of this set and was removed, false
otherwise.DataStructure.remove(Object)