Add SchemaNodeIdentifier.Absolute.intern() 02/91502/2
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 21 Jul 2020 12:02:19 +0000 (14:02 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Tue, 21 Jul 2020 12:05:49 +0000 (14:05 +0200)
commit5dc406242f5199a87b8db19227f57e15c577e178
tree30a2fce02cfb165c0b6d51a5c0a3723f2cdf7528
parentf26507448fc3157c9e7388f85e61f3cdcf8df107
Add SchemaNodeIdentifier.Absolute.intern()

We will be using SchemaNodeIdentifiers in a lot of contexts, some
of which involve dynamic wiring lookups. In these contexts we want
the ability to squash an Absolute schema node identifier into a
JVM-wide single instance -- hence we get benefits of cached hash
code and instance-shortcuts on equals().

Change-Id: I2144ba659a783d585e59103dde3e6d292a63ec48
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/api/stmt/SchemaNodeIdentifier.java