Joutsen v0.5.0+12-g5dd5f7e
Public Member Functions | List of all members
Joutsen.Collections.Generic.Collection< ItemType > Interface Template Reference

An interface describing classes that behave like a collection of items that can be modified. More...

Public Member Functions

bool Contains (ItemType item, SCG.IEqualityComparer< ItemType > comparer)
 Checks if an item is part of the collection. More...
 
void Add (SCG.IEnumerable< ItemType > items)
 Adds multiple items to the collection. More...
 

Detailed Description

An interface describing classes that behave like a collection of items that can be modified.

Since
0.4.0

Member Function Documentation

◆ Add()

void Joutsen.Collections.Generic.Collection< ItemType >.Add ( SCG.IEnumerable< ItemType >  items)

◆ Contains()

bool Joutsen.Collections.Generic.Collection< ItemType >.Contains ( ItemType  item,
SCG.IEqualityComparer< ItemType >  comparer 
)

Checks if an item is part of the collection.

Parameters
itemthe item to check
comparerthe instance used to compare the item to the items in the list
Returns
true if the item is part of the list, false otherwise

Implemented in Joutsen.Collections.Generic.Compatibility.CollectionAdapter< ItemType >, Joutsen.Collections.Generic.ArrayList< ItemType >, and Joutsen.Collections.Generic.DoublyLinkedList< ItemType >.