Introduce WritableObject/WritableIdentifier 95/39695/6
authorRobert Varga <rovarga@cisco.com>
Wed, 1 Jun 2016 09:34:54 +0000 (11:34 +0200)
committerTony Tkacik <ttkacik@cisco.com>
Mon, 6 Jun 2016 10:00:54 +0000 (10:00 +0000)
commite150b46dd1b0fc19df9524015dc3539f7e6cf8ca
tree3e2444480055d42590cbe5326d2d4765213cfb47
parentfc0bdd3a2760c886b8886e6079f7e5b31597dbfd
Introduce WritableObject/WritableIdentifier

When serializing nested Identifiers, it is sometimes useful
to be able to skip the object header in the stream. This patch
introduces WritableObject interface and WritableIdentifier
as the unification of WritableObject and WritableIdentifier.

It furthermore adds utilities to write long values if a format
which uses minimum number of bytes.

Change-Id: I8459e2883b4ab3dff113000cea43a452eacd3324
Signed-off-by: Robert Varga <rovarga@cisco.com>
common/concepts/pom.xml
common/concepts/src/main/java/org/opendaylight/yangtools/concepts/WritableIdentifier.java [new file with mode: 0644]
common/concepts/src/main/java/org/opendaylight/yangtools/concepts/WritableObject.java [new file with mode: 0644]
common/concepts/src/main/java/org/opendaylight/yangtools/concepts/WritableObjects.java [new file with mode: 0644]
common/concepts/src/test/java/org/opendaylight/yangtools/concepts/WritableObjectsTest.java [new file with mode: 0644]