@Test public void testIsMulticast() { IpPrefix v4Unicast = IpPrefix.valueOf("10.0.0.1/16"); IpPrefix v4Multicast = IpPrefix.valueOf("224.0.0.1/4"); IpPrefix v4Overlap = IpPrefix.valueOf("192.0.0.0/2"); IpPrefix v6Unicast = IpPrefix.valueOf("1000::1/8"); IpPrefix v6Multicast = IpPrefix.valueOf("ff02::1/8"); IpPrefix v6Overlap = IpPrefix.valueOf("ff00::1/4"); assertFalse(v4Unicast.isMulticast()); assertTrue(v4Multicast.isMulticast()); assertFalse(v4Overlap.isMulticast()); assertFalse(v6Unicast.isMulticast()); assertTrue(v6Multicast.isMulticast()); assertFalse(v6Overlap.isMulticast()); }
public boolean isMulticast() { return isIp4() ? IPV4_MULTICAST_PREFIX.contains(this.getIp4Prefix()) : IPV6_MULTICAST_PREFIX.contains(this.getIp6Prefix()); }
IpPrefix { public boolean isMulticast() { return isIp4() ? IPV4_MULTICAST_PREFIX.contains(this.getIp4Prefix()) : IPV6_MULTICAST_PREFIX.contains(this.getIp6Prefix()); } }
IpPrefix { public boolean isMulticast() { return isIp4() ? IPV4_MULTICAST_PREFIX.contains(this.getIp4Prefix()) : IPV6_MULTICAST_PREFIX.contains(this.getIp6Prefix()); } protected  IpPrefix(IpAddress address, int prefixLength); }
IpPrefix { public boolean isMulticast() { return isIp4() ? IPV4_MULTICAST_PREFIX.contains(this.getIp4Prefix()) : IPV6_MULTICAST_PREFIX.contains(this.getIp6Prefix()); } protected  IpPrefix(IpAddress address, int prefixLength); IpAddress.Version version(); boolean isIp4(); boolean isIp6(); boolean isMulticast(); IpAddress address(); int prefixLength(); Ip4Prefix getIp4Prefix(); Ip6Prefix getIp6Prefix(); static IpPrefix valueOf(int address, int prefixLength); static IpPrefix valueOf(IpAddress.Version version, byte[] address,
                                   int prefixLength); static IpPrefix valueOf(IpAddress address, int prefixLength); static IpPrefix valueOf(String address); boolean contains(IpPrefix other); boolean contains(IpAddress other); @Override int hashCode(); @Override boolean equals(Object obj); @Override /* * (non-Javadoc) * The format is "x.x.x.x/y" for IPv4 prefixes. * * @see java.lang.Object#toString() */ String toString(); }
IpPrefix { public boolean isMulticast() { return isIp4() ? IPV4_MULTICAST_PREFIX.contains(this.getIp4Prefix()) : IPV6_MULTICAST_PREFIX.contains(this.getIp6Prefix()); } protected  IpPrefix(IpAddress address, int prefixLength); IpAddress.Version version(); boolean isIp4(); boolean isIp6(); boolean isMulticast(); IpAddress address(); int prefixLength(); Ip4Prefix getIp4Prefix(); Ip6Prefix getIp6Prefix(); static IpPrefix valueOf(int address, int prefixLength); static IpPrefix valueOf(IpAddress.Version version, byte[] address,
                                   int prefixLength); static IpPrefix valueOf(IpAddress address, int prefixLength); static IpPrefix valueOf(String address); boolean contains(IpPrefix other); boolean contains(IpAddress other); @Override int hashCode(); @Override boolean equals(Object obj); @Override /* * (non-Javadoc) * The format is "x.x.x.x/y" for IPv4 prefixes. * * @see java.lang.Object#toString() */ String toString(); static final int MAX_INET_MASK_LENGTH; static final int MAX_INET6_MASK_LENGTH; @Deprecated
    static final IpPrefix MULTICAST_RANGE; static final IpPrefix IPV4_MULTICAST_PREFIX; static final IpPrefix IPV6_MULTICAST_PREFIX; }