public class XAddressInfoSet
extends java.lang.Object
| Constructor and Description |
|---|
XAddressInfoSet()
Constructor.
|
XAddressInfoSet(int initialCapacity)
Constructor.
|
XAddressInfoSet(XAddressInfo xAdrInfo)
Constructor, adds an
XAddressInfo element to this set. |
XAddressInfoSet(XAddressInfoSet set)
Copy Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(XAddressInfo xAdrInfo)
Adds a
XAddressInfo to this set. |
void |
addAll(XAddressInfoSet xAdrInfoSet)
Adds all
EprInfo contained within eprinfos to this instance. |
boolean |
contains(XAddressInfo xAdrInfo)
Checks whether given
XAddressInfo is already present within this set. |
boolean |
containsAll(XAddressInfoSet otherInfoSet)
Checks whether all items within the given
XAddressInfoSet are present within this set. |
boolean |
equals(java.lang.Object obj) |
boolean |
equals(XAddressInfoSet other)
A specific implementation of
Object.equals(Object) for this kind of set. |
XAddressInfo |
get(XAddressInfo xAdrInfo)
Get the xAdrInfo from this XAddressInfoSet that is equal to the given xAdrInfo.
|
int |
hashCode() |
boolean |
isReadOnly()
Returns whether this set is read-only or not.
|
Iterator |
iterator() |
void |
mergeProtocolInfo(ProtocolInfo protocolInfo) |
boolean |
remove(XAddressInfo xAdrInfo)
Removes a URI from this URISet.
|
void |
setReadOnly()
Sets this set to read-only.
|
int |
size()
Returns the current size of this set.
|
java.lang.String |
toString() |
public XAddressInfoSet()
public XAddressInfoSet(int initialCapacity)
public XAddressInfoSet(XAddressInfo xAdrInfo)
XAddressInfo element to this set.xAdrInfo - XAddressInfo element to be added to the new set.public XAddressInfoSet(XAddressInfoSet set)
public Iterator iterator()
public boolean contains(XAddressInfo xAdrInfo)
XAddressInfo is already present within this set.xAdrInfo - the XAddressInfo to check.true if XAddressInfo is contained by this set, false if notpublic boolean containsAll(XAddressInfoSet otherInfoSet)
XAddressInfoSet 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 equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(XAddressInfoSet other)
Object.equals(Object) for this kind of set.other - the other XAddressInfoSet to compare.true if both sets are equals, false otherwise.Object.equals(Object)public boolean isReadOnly()
A read-only set will not allow any modification.
true if the set is read-only, false otherwise.public void setReadOnly()
A read-only set will not allow any modification.
public void add(XAddressInfo xAdrInfo)
XAddressInfo to this set.
A UnsupportedOperationException is thrown if this set is read-only.
xAdrInfo - The XAddressInfo to be added.DataStructure.add(Object)public XAddressInfo get(XAddressInfo xAdrInfo)
xAdrInfo - null if it does not contained an equal
xAdrInfopublic void addAll(XAddressInfoSet xAdrInfoSet)
EprInfo contained within eprinfos to this instance.
A UnsupportedOperationException is thrown if this set is read-only.
xAdrInfoSet - the set of EprInfo to add.public boolean remove(XAddressInfo xAdrInfo)
xAdrInfo - The URI to be removed.true if the argument was a component of this UniformResourceIdentifierList;
false otherwise.DataStructure.remove(Object)public void mergeProtocolInfo(ProtocolInfo protocolInfo)