@Test public void testVisitIpIpSpace() { assertTrue(containsIp(IP1).visitIpIpSpace(IP1.toIpSpace())); assertFalse(containsIp(IP2).visitIpIpSpace(IP1.toIpSpace())); }
@Override public final Boolean visitIpIpSpace(IpIpSpace ipIpSpace) { return _ip.equals(ipIpSpace.getIp()); }
AbstractIpSpaceContainsIp implements GenericIpSpaceVisitor<Boolean> { @Override public final Boolean visitIpIpSpace(IpIpSpace ipIpSpace) { return _ip.equals(ipIpSpace.getIp()); } }
AbstractIpSpaceContainsIp implements GenericIpSpaceVisitor<Boolean> { @Override public final Boolean visitIpIpSpace(IpIpSpace ipIpSpace) { return _ip.equals(ipIpSpace.getIp()); } AbstractIpSpaceContainsIp(Ip ip); }
AbstractIpSpaceContainsIp implements GenericIpSpaceVisitor<Boolean> { @Override public final Boolean visitIpIpSpace(IpIpSpace ipIpSpace) { return _ip.equals(ipIpSpace.getIp()); } 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 visitIpIpSpace(IpIpSpace ipIpSpace) { return _ip.equals(ipIpSpace.getIp()); } 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);  }