Add IPv4 address bridges to primitive int 54/86754/1
authorRobert Varga <robert.varga@pantheon.tech>
Mon, 6 Jan 2020 17:41:24 +0000 (18:41 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Mon, 6 Jan 2020 18:31:28 +0000 (19:31 +0100)
commit7725b36ff2d8cb629e04161aad33905f0b33469c
tree34fadf0f64616adddb4c5c57159f0149a2b4043a
parent8c9e200a010116a82720c07b28030e769c79b634
Add IPv4 address bridges to primitive int

Interfacing Ipv4Address(NoZone) with plain int is useful when
we we want to interface with byte streams, such as DataInput
or Netty's ByteBuf. This adds the methods to do so.

JIRA: MDSAL-509
Change-Id: Icce95e4a94ae41be4fc2aee352f83655ea55e89f
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit 98143cfc18f95eb4057587c1bdb4aa3b5e3b2e20)
model/ietf/ietf-type-util/src/main/java/org/opendaylight/mdsal/model/ietf/util/AbstractIetfInetUtil.java
model/ietf/ietf-type-util/src/test/java/org/opendaylight/mdsal/model/ietf/util/AbstractIetfInetUtilTest.java