BUG-7464: Centralize implementation constants 82/49982/12
authorRobert Varga <rovarga@cisco.com>
Tue, 3 Jan 2017 14:07:00 +0000 (15:07 +0100)
committerRobert Varga <nite@hq.sk>
Tue, 10 Jan 2017 23:44:42 +0000 (23:44 +0000)
commitff3a186d75711a020e19f10088df06e7ac95759c
tree51224379e23f4c9ddfe222d8dfbdaca82b7c0d75
parentd57d376dcb0d30ff28fb034aec0fb5db2100429d
BUG-7464: Centralize implementation constants

We have a couple of constants: 5, 7 and 35 used in the codebase,
which are not explained anywhere. These are really derived from
the size of hash (32 bits) and size of bitmap (32 bits).

Centralize their definition in a new utility class, so they can
be documented and referenced uniformly.

Change-Id: I96433c3e72f41fb9bcfa6fa4a9552a7ff9202005
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
third-party/triemap/src/main/java/org/opendaylight/yangtools/triemap/CNode.java
third-party/triemap/src/main/java/org/opendaylight/yangtools/triemap/Constants.java [new file with mode: 0644]
third-party/triemap/src/main/java/org/opendaylight/yangtools/triemap/INode.java
third-party/triemap/src/main/java/org/opendaylight/yangtools/triemap/TrieMapIterator.java