@Test public void testEqualTo() throws Exception { assertTrue(IpPrefixConv.equalTo(ipPrefix1, ipPrefix1)); assertFalse(IpPrefixConv.equalTo(ipPrefix1, ipPrefix3)); assertFalse(IpPrefixConv.equalTo(ipPrefix3, ipPrefix4)); }
public static boolean equalTo(IpPrefix prefix1, IpPrefix prefix2) { return toString(prefix1).equals(toString(prefix2)); }
IpPrefixConv { public static boolean equalTo(IpPrefix prefix1, IpPrefix prefix2) { return toString(prefix1).equals(toString(prefix2)); } }
IpPrefixConv { public static boolean equalTo(IpPrefix prefix1, IpPrefix prefix2) { return toString(prefix1).equals(toString(prefix2)); } private  IpPrefixConv(); }
IpPrefixConv { public static boolean equalTo(IpPrefix prefix1, IpPrefix prefix2) { return toString(prefix1).equals(toString(prefix2)); } private  IpPrefixConv(); static IpPrefix createPrefix(String ipPrefix); static List<IpPrefix> decodeIpv4(byte[] array, boolean compact); static List<IpPrefix> decodeIpv6(byte[] array, boolean compact); static boolean equalTo(IpPrefix prefix1, IpPrefix prefix2); static int getBytesLength(int prefixLength); static int getPrefixLength(IpPrefix ipPrefix); static InetSocketAddress parseInetPrefix(String ipPrefix); static byte[] toBytes(IpPrefix prefix); static byte[] toBytes(List<IpPrefix> prefixes); static String toString(IpPrefix prefix); static String toString(List<IpPrefix> prefixes); static byte[] trimPrefix(byte[] prefix, int blength); }
IpPrefixConv { public static boolean equalTo(IpPrefix prefix1, IpPrefix prefix2) { return toString(prefix1).equals(toString(prefix2)); } private  IpPrefixConv(); static IpPrefix createPrefix(String ipPrefix); static List<IpPrefix> decodeIpv4(byte[] array, boolean compact); static List<IpPrefix> decodeIpv6(byte[] array, boolean compact); static boolean equalTo(IpPrefix prefix1, IpPrefix prefix2); static int getBytesLength(int prefixLength); static int getPrefixLength(IpPrefix ipPrefix); static InetSocketAddress parseInetPrefix(String ipPrefix); static byte[] toBytes(IpPrefix prefix); static byte[] toBytes(List<IpPrefix> prefixes); static String toString(IpPrefix prefix); static String toString(List<IpPrefix> prefixes); static byte[] trimPrefix(byte[] prefix, int blength);  }