@Test(expected = IllegalArgumentException.class) public void hexValueWithExceptionTest() throws Exception { AbstractIetfYangUtil.hexValue(Character.highSurrogate(1000)); fail("Expected invalid character exception"); }
static byte hexValue(final char ch) { byte value; try { value = HEX_VALUES[ch]; } catch (IndexOutOfBoundsException e) { value = -1; } if (value < 0) { throw new IllegalArgumentException("Invalid character '" + ch + "' encountered"); } return value; }
AbstractIetfYangUtil { static byte hexValue(final char ch) { byte value; try { value = HEX_VALUES[ch]; } catch (IndexOutOfBoundsException e) { value = -1; } if (value < 0) { throw new IllegalArgumentException("Invalid character '" + ch + "' encountered"); } return value; } }
AbstractIetfYangUtil { static byte hexValue(final char ch) { byte value; try { value = HEX_VALUES[ch]; } catch (IndexOutOfBoundsException e) { value = -1; } if (value < 0) { throw new IllegalArgumentException("Invalid character '" + ch + "' encountered"); } return value; } protected  AbstractIetfYangUtil(final Class<M> macClass, final Class<P> physClass, final Class<H> hexClass,
            final Class<Q> quadClass, final Class<U> uuidClass); }
AbstractIetfYangUtil { static byte hexValue(final char ch) { byte value; try { value = HEX_VALUES[ch]; } catch (IndexOutOfBoundsException e) { value = -1; } if (value < 0) { throw new IllegalArgumentException("Invalid character '" + ch + "' encountered"); } return value; } 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); }
AbstractIetfYangUtil { static byte hexValue(final char ch) { byte value; try { value = HEX_VALUES[ch]; } catch (IndexOutOfBoundsException e) { value = -1; } if (value < 0) { throw new IllegalArgumentException("Invalid character '" + ch + "' encountered"); } return value; } 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);  }