Collection
Object Hierarchy:
Description:
public abstract class Collection<
G> :
Iterable<
G>
Serves as the base interface for implementing collection classes. Defines size, iteration, and modification methods.
Content:
Properties:
Static methods:
Creation methods:
Methods:
- public abstract bool add (G item)
Adds an item to this collection. Must not be called on read-only
collections.
- public virtual bool add_all (Collection<G> collection)
Adds all items in the input collection to this collection.
- public abstract void clear ()
Removes all items from this collection. Must not be called on read-
only collections.
- public abstract bool contains (G item)
Determines whether this collection contains the specified item.
- public abstract bool remove (G item)
Removes the first occurrence of an item from this collection. Must not
be called on read-only collections.
- public virtual G[] to_array ()
Returns an array containing all of items from this collection.
Inherited Members:
All known members inherited from class Vala.Iterable