Update and document Uint 74/84174/5
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 3 Sep 2019 11:35:38 +0000 (13:35 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Tue, 3 Sep 2019 17:49:11 +0000 (19:49 +0200)
commita260feaac6efe91fc149d1c5c671a18a8022d4bf
tree75a3228b385cae8cf74881653fdad7c0b1a28be9
parent4f3af82d9b788e178a47854623aec1dbb37b50f0
Update and document Uint

This updates Uint classes to expose ZERO/ONE/MAX_VALUE and documents
their methods.

Caching is reworked to work on tunable statically-populated caches,
where Uint8 is always fully cached. This mirrors what is being done
for boxing purposes on java.lang.Byte, etc.

On top of the statically-populated caches, each type has a dedicated
Interner instance, which can be efficiently consulted using intern().

JIRA: YANGTOOLS-1018
Change-Id: Ic25b5ac685c920f7d82d588309a543f9a8eb43b7
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
yang/yang-common/src/main/java/org/opendaylight/yangtools/yang/common/Uint16.java
yang/yang-common/src/main/java/org/opendaylight/yangtools/yang/common/Uint32.java
yang/yang-common/src/main/java/org/opendaylight/yangtools/yang/common/Uint64.java
yang/yang-common/src/main/java/org/opendaylight/yangtools/yang/common/Uint8.java
yang/yang-common/src/test/java/org/opendaylight/yangtools/yang/common/Uint32Test.java
yang/yang-common/src/test/java/org/opendaylight/yangtools/yang/common/Uint64Test.java