AbstractIetfYangUtil { public final byte @NonNull[] dottedQuadBytes(final @NonNull Q dottedQuad) { final String str = getQuadValue(dottedQuad); return Ipv4Utils.addressBytes(str, str.length()); } protected  AbstractIetfYangUtil(final Class<M> macClass, final Class<P> physClass, final Class<H> hexClass,
            final Class<Q> quadClass, final Class<U> uuidClass); final @NonNull M canonizeMacAddress(final @NonNull M macAddress); final @NonNull M macAddressFor(final byte @NonNull[] bytes); final byte @NonNull[] macAddressBytes(final @NonNull M macAddress); final @NonNull P canonizePhysAddress(final @NonNull P physAddress); final @NonNull P physAddressFor(final byte @NonNull[] bytes); final byte @NonNull[] physAddressBytes(final @NonNull P physAddress); final @NonNull H hexStringFor(final byte @NonNull[] bytes); final byte @NonNull[] hexStringBytes(final @NonNull H hexString); final @NonNull Q dottedQuadFor(final byte @NonNull[] bytes); final @NonNull Q dottedQuadFor(final int bits); final int dottedQuadBits(final @NonNull Q dottedQuad); final byte @NonNull[] dottedQuadBytes(final @NonNull Q dottedQuad); final @NonNull U uuidFor(final @NonNull UUID uuid);  }
@Test public void testQuadBytes() { assertArrayEquals(new byte[] { 1, 2, 3, 4 }, UTIL.dottedQuadBytes(new QuadClass("1.2.3.4"))); }