addIfNotContains

open fun <N : Declaration?> addIfNotContains(collection: Collection<N>, declaration: N)
open fun <T : Node?> addIfNotContains(collection: Collection<PropertyEdge<T>>, declaration: T)


open fun <T : Node?> addIfNotContains(collection: Collection<PropertyEdge<T>>, declaration: T, outgoing: Boolean)

Adds a declaration to a collection of property edges, which contain the declarations

Parameters

collection

the collection

declaration

the declaration

<T>

the type of the declaration

outgoing

whether the property is outgoing