Class LockTokenIdentity
java.lang.Object
org.ek9lang.compiler.phase5.flow.LockTokenIdentity
THE token-identity rule of a
LockIdentityValue: two identity tokens are the same token when they are
structurally equal PlaceholderTokens, and otherwise only when they are the same object (==) - an
ISymbol's structural equals would merge two different locks. Its hash and its membership test
follow the same rule, so the three can never disagree; hold one.
Was LockIdentityValue.tokensEqual, tokenHash and containsToken (no-statics lane P1,
2026-10-29).
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) booleancontains(Collection<Object> collection, Object t) Does the collection hold a token that is thesame(Object, Object)as this one.(package private) intToken hash consistent withsame(Object, Object): structural hash forPlaceholderToken, identity hash for everything else.(package private) booleanToken equality: structural forPlaceholderToken, identity (==) for everything else.
-
Constructor Details
-
LockTokenIdentity
LockTokenIdentity()
-
-
Method Details
-
same
Token equality: structural forPlaceholderToken, identity (==) for everything else. -
hash
Token hash consistent withsame(Object, Object): structural hash forPlaceholderToken, identity hash for everything else. -
contains
Does the collection hold a token that is thesame(Object, Object)as this one.
-