cern.colt.list
Class AbstractCollection
- java.lang.Object
-
- cern.colt.PersistentObject
-
- cern.colt.list.AbstractCollection
-
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable
- Direct Known Subclasses:
- AbstractList
public abstract class AbstractCollection extends PersistentObject
Abstract base class for resizable collections holding objects or primitive data types such asint,float, etc. First see the package summary and javadoc tree view to get the broad picture.Note that this implementation is not synchronized.
- See Also:
ArrayList,Vector,Arrays, Serialized Form
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method and Description abstract voidclear()Removes all elements from the receiver.booleanisEmpty()Tests if the receiver has no elements.abstract intsize()Returns the number of elements contained in the receiver.abstract java.util.ArrayListtoList()Returns ajava.util.ArrayListcontaining all the elements in the receiver.java.lang.StringtoString()Returns a string representation of the receiver, containing the String representation of each element.-
Methods inherited from class cern.colt.PersistentObject
clone
-
-
-
-
Method Detail
-
clear
public abstract void clear()
Removes all elements from the receiver. The receiver will be empty after this call returns.
-
isEmpty
public boolean isEmpty()
Tests if the receiver has no elements.- Returns:
trueif the receiver has no elements;falseotherwise.
-
size
public abstract int size()
Returns the number of elements contained in the receiver.- Returns:
- the number of elements contained in the receiver.
-
toList
public abstract java.util.ArrayList toList()
Returns ajava.util.ArrayListcontaining all the elements in the receiver.
-
toString
public java.lang.String toString()
Returns a string representation of the receiver, containing the String representation of each element.- Overrides:
toStringin classjava.lang.Object
-
-
DMelt 3.0 © DataMelt by jWork.ORG