ICollector

Description

interface Tinman.Core.Collections.ICollector<T in>

Extended by

ContentNode abstract
IBag
IDeque
IGeoPath
MapRegion sealed
TypeDocNode sealed

Base interface for classes that collect elements.

Public / Methods

Add


public method Add → (1)

element in : T

The element to add.

returns → bool

true if the collection has changed, false if not.

Adds the given element to this collection.

Implementing methods shall return false iff the element has already been collected, i.e. it is contained in the collection. If in doubt, return true.