[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Add a key to the set. Add with a reference count of one if the key didn't exist in the set. Increase the reference count by one if the key already exists. Return true if this is the first time the key was encountered, or false if key is already in set.

Namespace: net.esper.collection
Assembly:   NEsper (in NEsper.dll)

Syntax

Visual Basic (Declaration)
Public Overridable Function Add ( _
	key As K _
) As Boolean
C#
public virtual bool Add (
	K key
)
Visual C++
public:
virtual bool Add (
	K key
)

Parameters

key
K type parameter of net.esper.collection.RefCountedSet<(Of K>).
to add

Return Value

true if the key is not in the set already, false if the key is already in the set