*/
package org.opendaylight.mdsal.model.ietf.util;
+import com.google.common.annotations.Beta;
import org.eclipse.jdt.annotation.NonNull;
/**
* exposed in any shape or form to the outside world, as the code relies on the fact that the strings presented to it
* have been previously validated to conform to the regular expressions defined in the YANG model.
*/
-final class Ipv4Utils {
+@Beta
+public final class Ipv4Utils {
private Ipv4Utils() {
-
+ // Hidden on purpose
}
static void fillIpv4Bytes(final byte @NonNull[] bytes, final int byteStart, final String str, final int strStart,
import static com.google.common.base.Preconditions.checkArgument;
import static com.google.common.base.Verify.verify;
+import com.google.common.annotations.Beta;
import java.util.Arrays;
import java.util.HexFormat;
import org.eclipse.jdt.annotation.NonNull;
* As far as why it is similar to Sun's sun.net.util please ask Sun why
* their code has the same variable names, comments and code flow.
*/
-final class Ipv6Utils {
+@Beta
+public final class Ipv6Utils {
private static final int INADDR4SZ = 4;
private static final int INADDR6SZ = 16;
private static final int INT16SZ = Short.BYTES;
private Ipv6Utils() {
-
+ // Hidden on purpose
}
/**