|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.wimpi.pim.contact.basicimpl.ExtensionsImpl
A basic and simple implementation of the
Extensions
.
Field Summary | |
protected java.util.Map |
m_Extensions
|
Constructor Summary | |
ExtensionsImpl()
|
Method Summary | |
void |
add(Extension ext)
Adds an extension to this Extensions collection. |
Extension |
get(java.lang.String xidentifier)
Returns the extension with the given identifier. |
Extension |
get(java.lang.String xidentifier,
int idx)
Returns the extension with the given identifier and the given index. |
java.util.Iterator |
iterator(java.lang.String xidentifier)
Returns an iterator over all elements of this Extensions collection with a given identifier. |
Extension[] |
list(java.lang.String xidentifier)
Returns a list of extensions with the given identifier. |
java.lang.String[] |
listIdentifiers()
Returns a list identifiers of all extensions in this Extensions collection. |
void |
remove(Extension ext)
Removes the given extension from this Extensions collection. |
void |
remove(java.lang.String xidentifier)
Removes all extensions with the given identifier from this Extensions collection. |
Extension |
remove(java.lang.String xidentifier,
int idx)
Removes the extension with the given identifier and index from this Extensions collection. |
int |
size()
Returns the total number of extensions associated with this Extensions collection. |
int |
size(java.lang.String xidentifier)
Returns the number of extensions associated with this Extensions collection with a given identifier. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.util.Map m_Extensions
Constructor Detail |
public ExtensionsImpl()
Method Detail |
public java.lang.String[] listIdentifiers()
Extensions
listIdentifiers
in interface Extensions
public Extension[] list(java.lang.String xidentifier)
Extensions
list
in interface Extensions
xidentifier
- an identifier as String.
public java.util.Iterator iterator(java.lang.String xidentifier)
Extensions
iterator
in interface Extensions
xidentifier
- an identifier as String.
public Extension get(java.lang.String xidentifier)
Extensions
get
in interface Extensions
xidentifier
- an identifier as String.
public Extension get(java.lang.String xidentifier, int idx) throws java.lang.IndexOutOfBoundsException
Extensions
get
in interface Extensions
xidentifier
- an identifier as String.idx
- the index as int.
java.lang.IndexOutOfBoundsException
- if the index is
out of bounds.public void add(Extension ext)
Extensions
add
in interface Extensions
ext
- the Extension to be added.public void remove(Extension ext)
Extensions
remove
in interface Extensions
ext
- the extension as Extension instance.public void remove(java.lang.String xidentifier)
Extensions
remove
in interface Extensions
xidentifier
- an identifier as String.public Extension remove(java.lang.String xidentifier, int idx) throws java.lang.IndexOutOfBoundsException
Extensions
remove
in interface Extensions
xidentifier
- an identifier as String.idx
- the index as int.
java.lang.IndexOutOfBoundsException
- if the index is
out of bounds.public int size()
Extensions
size
in interface Extensions
public int size(java.lang.String xidentifier)
Extensions
size
in interface Extensions
xidentifier
- an identifier as String.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |