Interface CharCollection

    • Method Detail

      • toArray

        <T> T[] toArray​(T[] a)
        Returns an containing the items of this collection; the runtime type of the returned array is that of the specified array.

        Warning: Note that, contrarily to Collection.toArray(Object[]), this methods just writes all elements of this collection: no special value will be added after the last one.

        Specified by:
        toArray in interface Collection<Character>
        Parameters:
        a - if this array is big enough, it will be used to store this collection.
        Returns:
        a primitive type array containing the items of this collection.
        See Also:
        Collection.toArray(Object[])
      • toCharArray

        char[] toCharArray()
        Returns a primitive type array containing the items of this collection.
        Returns:
        a primitive type array containing the items of this collection.
        See Also:
        Collection.toArray()
      • toCharArray

        char[] toCharArray​(char[] a)
        Returns a primitive type array containing the items of this collection.

        Note that, contrarily to Collection.toArray(Object[]), this methods just writes all elements of this collection: no special value will be added after the last one.

        Parameters:
        a - if this array is big enough, it will be used to store this collection.
        Returns:
        a primitive type array containing the items of this collection.
        See Also:
        Collection.toArray(Object[])
      • toArray

        char[] toArray​(char[] a)
        Returns a primitive type array containing the items of this collection.

        Note that, contrarily to Collection.toArray(Object[]), this methods just writes all elements of this collection: no special value will be added after the last one.

        Parameters:
        a - if this array is big enough, it will be used to store this collection.
        Returns:
        a primitive type array containing the items of this collection.
        See Also:
        Collection.toArray(Object[])
      • rem

        boolean rem​(char key)
        Note that this method should be called remove(), but the clash with the similarly named index-based method in the List interface forces us to use a distinguished name. For simplicity, the set interfaces reinstates remove().
        See Also:
        Collection.remove(Object)