AbstractCollection
cern.colt.list

Class AbstractCollection

    • Method Summary

      Methods 
      Modifier and TypeMethod 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 ArrayListtoList()
      Returns a java.util.ArrayList containing all the elements in the receiver.
      StringtoString()
      Returns a string representation of the receiver, containing the String representation of each element.
    • 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:
        true if the receiver has no elements; false otherwise.
      • 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 ArrayList toList()
        Returns a java.util.ArrayList containing all the elements in the receiver.
      • toString

        public String toString()
        Returns a string representation of the receiver, containing the String representation of each element.
        Overrides:
        toString in class Object

SCaVis 2.1 © jWork.ORG