@Test public void writeRulesTest() { AccessListWrapper aclWrapper = new IngressAccessListWrapper(); List<GbpAceBuilder> rules = ImmutableList.of(rule1); aclWrapper.writeRules(rules); Assert.assertEquals(rule1, aclWrapper.readRules().get(0)); Assert.assertEquals(1, aclWrapper.readRules().size()); }
public void writeRules(@Nullable List<GbpAceBuilder> rules) { if (rules != null) { rules.forEach(this::writeRule); } }
AccessListWrapper { public void writeRules(@Nullable List<GbpAceBuilder> rules) { if (rules != null) { rules.forEach(this::writeRule); } } }
AccessListWrapper { public void writeRules(@Nullable List<GbpAceBuilder> rules) { if (rules != null) { rules.forEach(this::writeRule); } } AccessListWrapper(); }
AccessListWrapper { public void writeRules(@Nullable List<GbpAceBuilder> rules) { if (rules != null) { rules.forEach(this::writeRule); } } AccessListWrapper(); void writeRule(@Nullable GbpAceBuilder rule); void writeRules(@Nullable List<GbpAceBuilder> rules); List<GbpAceBuilder> readRules(); abstract AccessListUtil.ACE_DIRECTION getDirection(); abstract void writeAclRefOnIface(@Nonnull InstanceIdentifier<Node> vppIid,
            @Nonnull InstanceIdentifier<Interface> ifaceIid); Acl buildVppAcl(@Nonnull InterfaceKey ifaceKey); void writeAcl(@Nonnull InstanceIdentifier<Node> vppIid, @Nonnull InterfaceKey ifaceKey); static void removeAclsForInterface(@Nonnull InstanceIdentifier<Node> vppIid,
            @Nonnull InterfaceKey ifaceKey); static void removeAclRefFromIface(@Nonnull InstanceIdentifier<Node> vppIid, @Nonnull InterfaceKey ifaceKey); }
AccessListWrapper { public void writeRules(@Nullable List<GbpAceBuilder> rules) { if (rules != null) { rules.forEach(this::writeRule); } } AccessListWrapper(); void writeRule(@Nullable GbpAceBuilder rule); void writeRules(@Nullable List<GbpAceBuilder> rules); List<GbpAceBuilder> readRules(); abstract AccessListUtil.ACE_DIRECTION getDirection(); abstract void writeAclRefOnIface(@Nonnull InstanceIdentifier<Node> vppIid,
            @Nonnull InstanceIdentifier<Interface> ifaceIid); Acl buildVppAcl(@Nonnull InterfaceKey ifaceKey); void writeAcl(@Nonnull InstanceIdentifier<Node> vppIid, @Nonnull InterfaceKey ifaceKey); static void removeAclsForInterface(@Nonnull InstanceIdentifier<Node> vppIid,
            @Nonnull InterfaceKey ifaceKey); static void removeAclRefFromIface(@Nonnull InstanceIdentifier<Node> vppIid, @Nonnull InterfaceKey ifaceKey);  }