|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.starteam.StarTeamCollection
public abstract class StarTeamCollection
A stock implementation of an SDK collection. Every object in the collection is required to be unique and of the same class type The Java version implements java.util.Collection The C# version implement System.Collections.IList
| Method Summary | |
|---|---|
boolean |
add(java.lang.Object o)
Add the specified element to the collection. |
boolean |
addAll(java.util.Collection c)
Add all the elements of the specified collection to this one. |
boolean |
addAll(java.lang.Object[] c)
Add all the elements of the specified array to this one. |
StarTeamCollection |
addTo(java.lang.Object o)
Add the specified element to the collection. |
int |
attach(java.lang.Object o)
add an object to this collection |
void |
clear()
Removes all of the elements from this collection. |
boolean |
contains(java.lang.Object o)
Returns true if the specified object is a member of this collection |
boolean |
containsAll(java.util.Collection c)
Returns true if this collection contains all of the elements in the specified collection |
void |
detach(java.lang.Object o)
remove the object from the collection |
java.lang.Object |
get(int index)
Gets the object at the given index. |
java.lang.Object |
getSyncRoot()
returns an object that can be used to synchronize this collection |
int |
indexOf(java.lang.Object o)
returns the index of the object in this collection |
void |
insert(int index,
java.lang.Object o)
insert the object into the collection at the specified index |
boolean |
isEmpty()
Returns true if this collection contains no elements |
boolean |
isFixedSize()
returns true if this collection has a fixed size |
boolean |
isModified()
returns true if this collection has been modified while being iterated over |
boolean |
isReadOnly()
returns true if this collection is read only |
boolean |
isSynchronized()
returns true if access to this collection is synchronized |
java.util.Iterator |
iterator()
Returns an iterator over the elements in this collection. |
int |
positionOf(java.lang.Object o)
returns the position of the object instance in this collection to locate this object, an identity comparison is made with every other object in the collection |
boolean |
remove(java.lang.Object o)
Removes a single instance of the specified element from this collection, if it is present |
boolean |
removeAll(java.util.Collection c)
Removes all this collection's elements that are also contained in the specified collection |
void |
removeAt(int index)
remove the object at the specified index |
void |
resetCapacity(int newCapacity)
Reset the collection, and change its initial loading capacity |
boolean |
retainAll(java.util.Collection c)
Retains only the elements in this collection that are contained in the specified collection. |
void |
set(int index,
java.lang.Object o)
Sets the object at a given index in the collection, and removes the (existing) object at that index in the collection, provided that the object does not already exist in the collection |
int |
size()
Returns the number of elements in this collection |
java.lang.Object[] |
toArray()
Returns an array containing all of the elements in this collection |
java.lang.Object[] |
toArray(java.lang.Object[] a)
Returns an array containing all of the elements in this collection; the runtime type of the returned array is that of the specified array |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.Collection |
|---|
equals, hashCode |
| Method Detail |
|---|
public boolean add(java.lang.Object o)
add in interface java.util.Collectiono - The Object to add to the collection
java.lang.IllegalStateException - if the Collection is Read Only or IllegalArgumentException if
the type of Object being added is not assignable to this
collectionpublic StarTeamCollection addTo(java.lang.Object o)
o - The Object to add to the collection
public boolean addAll(java.util.Collection c)
addAll in interface java.util.Collectionc - the specified collection
public boolean addAll(java.lang.Object[] c)
c - an array of Objects to add to this collection
java.lang.IllegalStateException - if the Collection is Read Only or if the component type of
the array is not assignable to this collectionpublic void clear()
clear in interface java.util.Collectionpublic boolean contains(java.lang.Object o)
contains in interface java.util.Collectiono - the object to test for
public boolean containsAll(java.util.Collection c)
containsAll in interface java.util.Collectionpublic boolean isEmpty()
isEmpty in interface java.util.Collectionpublic java.util.Iterator iterator()
iterator in interface java.lang.Iterableiterator in interface java.util.Collectionpublic boolean remove(java.lang.Object o)
remove in interface java.util.Collectiono - the object to remove
public boolean removeAll(java.util.Collection c)
removeAll in interface java.util.Collectionpublic boolean retainAll(java.util.Collection c)
retainAll in interface java.util.Collectionpublic int size()
size in interface java.util.Collectionpublic java.lang.Object[] toArray()
toArray in interface java.util.Collectionpublic java.lang.Object[] toArray(java.lang.Object[] a)
toArray in interface java.util.Collectiona - the specified array whose runtime type will be used to
construct the returned array
public boolean isSynchronized()
public java.lang.Object getSyncRoot()
public boolean isFixedSize()
public boolean isReadOnly()
public void detach(java.lang.Object o)
o - the object to removeStarTeamCollection.remove(Object)public int attach(java.lang.Object o)
o - the object to add
StarTeamCollection.add(Object)public java.lang.Object get(int index)
index - A valid index into the collection.
public void set(int index,
java.lang.Object o)
index - A valid index into the collection.o - The object to be set.public int indexOf(java.lang.Object o)
o - the object to test for
StarTeamCollection.positionOf(Object)public int positionOf(java.lang.Object o)
o - the object to test for
StarTeamCollection.indexOf(Object)
public void insert(int index,
java.lang.Object o)
index - the position at which the object should be insertedo - the object to insertpublic void removeAt(int index)
index - the index at which the object should be removedpublic boolean isModified()
public void resetCapacity(int newCapacity)
newCapacity - the new capacity
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||