Add IPv4 address bridges to primitive int 51/86751/3
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:30:34 +0000 (19:30 +0100)
commit98143cfc18f95eb4057587c1bdb4aa3b5e3b2e20
tree986f98c0008035b05e1cd9502936cf57a6e23638
parent7cbd12d8894b1703b19e70b07436a937a7b8d0bf
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>
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