@Test public void testSuperset_ANY() { assertTrue("ANY should be a superset of itself", IpWildcard.ANY.supersetOf(IpWildcard.ANY)); }
public boolean supersetOf(IpWildcard other) { long wildToThis = _wildcardMask; long wildToOther = other._wildcardMask; long differentIpBits = _ip.asLong() ^ other._ip.asLong(); return (wildToThis & wildToOther) == wildToOther && (wildToThis & differentIpBits) == differentIpBits; }
IpWildcard implements Serializable, Comparable<IpWildcard> { public boolean supersetOf(IpWildcard other) { long wildToThis = _wildcardMask; long wildToOther = other._wildcardMask; long differentIpBits = _ip.asLong() ^ other._ip.asLong(); return (wildToThis & wildToOther) == wildToOther && (wildToThis & differentIpBits) == differentIpBits; } }
IpWildcard implements Serializable, Comparable<IpWildcard> { public boolean supersetOf(IpWildcard other) { long wildToThis = _wildcardMask; long wildToOther = other._wildcardMask; long differentIpBits = _ip.asLong() ^ other._ip.asLong(); return (wildToThis & wildToOther) == wildToOther && (wildToThis & differentIpBits) == differentIpBits; } private  IpWildcard(Ip address, long wildcardMask); }
IpWildcard implements Serializable, Comparable<IpWildcard> { public boolean supersetOf(IpWildcard other) { long wildToThis = _wildcardMask; long wildToOther = other._wildcardMask; long differentIpBits = _ip.asLong() ^ other._ip.asLong(); return (wildToThis & wildToOther) == wildToOther && (wildToThis & differentIpBits) == differentIpBits; } private  IpWildcard(Ip address, long wildcardMask); static IpWildcard ipWithWildcardMask(Ip address, long wildcardMask); static IpWildcard ipWithWildcardMask(Ip address, Ip wildcardMask); static IpWildcard create(Prefix prefix); static IpWildcard create(Ip ip); @JsonCreator static IpWildcard parse(String str); boolean containsIp(Ip ip); @Override int compareTo(IpWildcard o); @Override boolean equals(@Nullable Object o); @Override int hashCode(); @Nonnull Ip getIp(); @Nonnull Ip getWildcardMaskAsIp(); long getWildcardMask(); long getMask(); boolean intersects(IpWildcard other); boolean isPrefix(); boolean subsetOf(IpWildcard other); boolean supersetOf(IpWildcard other); @Nonnull IpWildcardIpSpace toIpSpace(); Prefix toPrefix(); @JsonValue @Override String toString(); }
IpWildcard implements Serializable, Comparable<IpWildcard> { public boolean supersetOf(IpWildcard other) { long wildToThis = _wildcardMask; long wildToOther = other._wildcardMask; long differentIpBits = _ip.asLong() ^ other._ip.asLong(); return (wildToThis & wildToOther) == wildToOther && (wildToThis & differentIpBits) == differentIpBits; } private  IpWildcard(Ip address, long wildcardMask); static IpWildcard ipWithWildcardMask(Ip address, long wildcardMask); static IpWildcard ipWithWildcardMask(Ip address, Ip wildcardMask); static IpWildcard create(Prefix prefix); static IpWildcard create(Ip ip); @JsonCreator static IpWildcard parse(String str); boolean containsIp(Ip ip); @Override int compareTo(IpWildcard o); @Override boolean equals(@Nullable Object o); @Override int hashCode(); @Nonnull Ip getIp(); @Nonnull Ip getWildcardMaskAsIp(); long getWildcardMask(); long getMask(); boolean intersects(IpWildcard other); boolean isPrefix(); boolean subsetOf(IpWildcard other); boolean supersetOf(IpWildcard other); @Nonnull IpWildcardIpSpace toIpSpace(); Prefix toPrefix(); @JsonValue @Override String toString(); static final IpWildcard ANY; }