Interface CollectionNumber

    • Method Detail

      • iterator

        IteratorNumber iterator()
        Returns an iterator over the elements of the collection.
        Returns:
        a new iterator
      • size

        int size()
        Returns the number of elements in the collection.
        Returns:
        the number of elements in the collection
      • toArray

        default <T> T toArray​(T array)
        Type Parameters:
        T - the type of the array
        Parameters:
        array - the array into which the elements of this list are to be stored, if it is big enough; otherwise, a new array of the same runtime type is allocated for this purpose.
        Returns:
        an array containing the elements
        Throws:
        ArrayStoreException - if the type of the specified array is not a primitive number array
        NullPointerException - if the specified array is null