@Test public void testVisitPrefixIpSpace() { PrefixIpSpace ipSpace = (PrefixIpSpace) Prefix.create(IP1, 31).toIpSpace(); assertTrue(containsIp(IP1).visitPrefixIpSpace(ipSpace)); assertFalse(containsIp(IP2).visitPrefixIpSpace(ipSpace)); }
@Override public final Boolean visitPrefixIpSpace(PrefixIpSpace prefixIpSpace) { return prefixIpSpace.getPrefix().containsIp(_ip); }
AbstractIpSpaceContainsIp implements GenericIpSpaceVisitor<Boolean> { @Override public final Boolean visitPrefixIpSpace(PrefixIpSpace prefixIpSpace) { return prefixIpSpace.getPrefix().containsIp(_ip); } }
AbstractIpSpaceContainsIp implements GenericIpSpaceVisitor<Boolean> { @Override public final Boolean visitPrefixIpSpace(PrefixIpSpace prefixIpSpace) { return prefixIpSpace.getPrefix().containsIp(_ip); } AbstractIpSpaceContainsIp(Ip ip); }
AbstractIpSpaceContainsIp implements GenericIpSpaceVisitor<Boolean> { @Override public final Boolean visitPrefixIpSpace(PrefixIpSpace prefixIpSpace) { return prefixIpSpace.getPrefix().containsIp(_ip); } AbstractIpSpaceContainsIp(Ip ip); @Override final Boolean castToGenericIpSpaceVisitorReturnType(Object o); @Override final Boolean visitAclIpSpace(AclIpSpace aclIpSpace); @Override final Boolean visitEmptyIpSpace(EmptyIpSpace emptyIpSpace); @Override final Boolean visitIpIpSpace(IpIpSpace ipIpSpace); @Override final Boolean visitIpWildcardIpSpace(IpWildcardIpSpace ipWildcardIpSpace); @Override final Boolean visitIpWildcardSetIpSpace(IpWildcardSetIpSpace ipWildcardSetIpSpace); @Override final Boolean visitPrefixIpSpace(PrefixIpSpace prefixIpSpace); @Override final Boolean visitUniverseIpSpace(UniverseIpSpace universeIpSpace); }
AbstractIpSpaceContainsIp implements GenericIpSpaceVisitor<Boolean> { @Override public final Boolean visitPrefixIpSpace(PrefixIpSpace prefixIpSpace) { return prefixIpSpace.getPrefix().containsIp(_ip); } AbstractIpSpaceContainsIp(Ip ip); @Override final Boolean castToGenericIpSpaceVisitorReturnType(Object o); @Override final Boolean visitAclIpSpace(AclIpSpace aclIpSpace); @Override final Boolean visitEmptyIpSpace(EmptyIpSpace emptyIpSpace); @Override final Boolean visitIpIpSpace(IpIpSpace ipIpSpace); @Override final Boolean visitIpWildcardIpSpace(IpWildcardIpSpace ipWildcardIpSpace); @Override final Boolean visitIpWildcardSetIpSpace(IpWildcardSetIpSpace ipWildcardSetIpSpace); @Override final Boolean visitPrefixIpSpace(PrefixIpSpace prefixIpSpace); @Override final Boolean visitUniverseIpSpace(UniverseIpSpace universeIpSpace);  }