public class XmlSizes extends Object implements Serializable
| Constructor and Description |
|---|
XmlSizes() |
| Modifier and Type | Method and Description |
|---|---|
void |
addSize(int index,
String size)
Add a size to the
List of size at a specified position. |
void |
addSize(long bytes)
Add a size to the
List of sizes. |
void |
addSize(String size)
Add a size to the
List of sizes. |
Iterator<? extends String> |
enumerateSize()
Return an
Iterator of all sizes. |
String[] |
getSize()
Returns the contents of the collection in an Array.
|
String |
getSize(int index)
Return the size at the specified position in the
List. |
int |
getSizeCount()
Return the number of the sizes.
|
void |
removeAllSize()
Remove all sizes in the
List. |
boolean |
removeSize(String size)
Remove a specified size.
|
String |
removeSizeAt(int index)
Remove a size at the specified position.
|
void |
setSize(int index,
String size)
Set the size at the specified position of the
List. |
void |
setSize(String[] sizeArray)
Set a all sizes to the
List. |
public void addSize(long bytes)
throws IndexOutOfBoundsException
List of sizes.bytes - the number of bytes to convert into a String.IndexOutOfBoundsException - if the index given is outside the bounds of the collection.public void addSize(String size) throws IndexOutOfBoundsException
List of sizes.size - the size to add.IndexOutOfBoundsException - if the index given is outside the bounds of the collection.public void addSize(int index,
String size)
throws IndexOutOfBoundsException
List of size at a specified position.index - the position to insert the size.size - the size to add.IndexOutOfBoundsException - if the index given is outside the bounds of the collectionpublic Iterator<? extends String> enumerateSize()
Iterator of all sizes.public String getSize(int index) throws IndexOutOfBoundsException
List.index - the position of the searched size.IndexOutOfBoundsException - if the index given is outside the bounds of the collectionpublic String[] getSize()
Note: Just in case the collection contents are changing in another thread, we pass a 0-length Array of the correct type into the API call. This way we know that the Array returned is of exactly the correct length.
public int getSizeCount()
public void removeAllSize()
List.public boolean removeSize(String size)
size - the size to remove.public String removeSizeAt(int index)
index - the position of the size to remove.public void setSize(int index,
String size)
throws IndexOutOfBoundsException
List.index - the position to set the size.size - the size to set.IndexOutOfBoundsException - if the index given is outside the bounds of the collectionCopyright © 2015 Leibniz Institute of Plant Genetics and Crop Plant Research (IPK). All rights reserved.