public class XMLFieldDescriptors
extends java.lang.Object
List, 
Collection| Constructor | Description | 
|---|---|
XMLFieldDescriptors() | 
 Creates a new XMLFieldDescriptors with the default Size. 
 | 
XMLFieldDescriptors(int size) | 
 Creates a new XMLFieldDescriptors with the given size. 
 | 
| Modifier and Type | Method | Description | 
|---|---|---|
boolean | 
add(XMLFieldDescriptor descriptor) | 
 Adds the specified XMLFieldDescriptor to the collection. 
 | 
void | 
clear() | 
 Removes all descriptors from this collection. 
 | 
java.lang.Object | 
clone() | 
|
boolean | 
contains(XMLFieldDescriptor descriptor) | 
 Returns true if the specified descriptor is contained in this
 collection. 
 | 
boolean | 
equals(java.lang.Object obj) | 
 Compares the specified object with this list for equality. 
 | 
XMLFieldDescriptor | 
get(int index) | 
 Returns the XMLFieldDescriptor at the specified position in this list. 
 | 
int | 
hashCode() | 
 As defined by the JDK 1.2 API spec: 
Returns the hash code value for this list.  | 
int | 
indexOf(XMLFieldDescriptor descriptor) | 
 Returns the index of the first occurrence of the specified
 XMLFieldDescriptor, or -1 if the descriptor is not contained in
 the collection. 
 | 
boolean | 
isEmpty() | 
 Returns true if there are no descriptors in the collection. 
 | 
XMLFieldDescriptor | 
remove(int index) | 
 Removes the descriptor at the specified index from the list. 
 | 
boolean | 
remove(XMLFieldDescriptor descriptor) | 
 Removes the given XMLFieldDescriptor from the list. 
 | 
int | 
size() | 
 Returns the number of descriptors in the list. 
 | 
XMLFieldDescriptor[] | 
toArray() | 
 Returns an array containing all of the descriptors in this list
 in proper sequence. 
 | 
XMLFieldDescriptor[] | 
toArray(XMLFieldDescriptor[] dst) | 
 Returns an array containing all of the descriptors in this list
 in proper sequence. 
 | 
XMLFieldDescriptor[] | 
toArray(XMLFieldDescriptor[] dst,
       int offset) | 
 Returns an array containing all of the elements in this list
 in proper sequence. 
 | 
void | 
trimToSize() | 
 Reduces the capacity of the internal buffer to the current size
 freeing up unused memory. 
 | 
public XMLFieldDescriptors()
public XMLFieldDescriptors(int size)
size - the initial size of the internal collection.public boolean add(XMLFieldDescriptor descriptor)
descriptor - the XMLFieldDescriptor to addpublic void clear()
public java.lang.Object clone()
clone in class java.lang.Objectpublic boolean contains(XMLFieldDescriptor descriptor)
descriptor - the XMLFieldDescriptor to search the list forpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic XMLFieldDescriptor get(int index) throws java.lang.IndexOutOfBoundsException
index - the position of the descriptor to returnjava.lang.IndexOutOfBoundsExceptionpublic int hashCode()
 hashCode = 1;
 Iterator i = list.iterator();
 while (i.hasNext()) {
    Object obj = i.next();
    hashCode = 31*hashCode + (obj==null ? 0 : obj.hashCode());
 }
 hashCode in class java.lang.Objectpublic int indexOf(XMLFieldDescriptor descriptor)
descriptor - the XMLFieldDescriptor to get the index ofpublic boolean isEmpty()
public XMLFieldDescriptor remove(int index)
index - the position in the list to remove the descriptor from.public boolean remove(XMLFieldDescriptor descriptor)
descriptor - the XMLFieldDescriptor to remove from the list.public void trimToSize()
public int size()
public XMLFieldDescriptor[] toArray()
public XMLFieldDescriptor[] toArray(XMLFieldDescriptor[] dst)
public XMLFieldDescriptor[] toArray(XMLFieldDescriptor[] dst, int offset)
Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com