Class AddOnceByIdentity<T>
java.lang.Object
org.ek9lang.compiler.support.AddOnceByIdentity<T>
- Type Parameters:
T- the element type
- All Implemented Interfaces:
BiConsumer<List<T>,T>
THE add-if-not-already-there by IDENTITY:
item is added to list unless that very object is already
in it. For symbols, scopes and parse nodes, whose equals is not identity (two same-named symbols in
different scopes may compare equal), when the order they were met in matters (a Set from an
IdentityHashMap has no stable order). Use this; never a private noneMatch(existing -> existing == x).-
Constructor Details
-
AddOnceByIdentity
public AddOnceByIdentity()
-
-
Method Details
-
accept
-