@Test public void isValid() throws Exception { assertTrue(config.isValid()); assertFalse(invalidConfig.isValid()); }
@Override public boolean isValid() { return hasOnlyFields(INGRESS_VLAN, EGRESS_VLAN) && ingressVlan() != null && egressVlan() != null; }
McastConfig extends Config<ApplicationId> { @Override public boolean isValid() { return hasOnlyFields(INGRESS_VLAN, EGRESS_VLAN) && ingressVlan() != null && egressVlan() != null; } }
McastConfig extends Config<ApplicationId> { @Override public boolean isValid() { return hasOnlyFields(INGRESS_VLAN, EGRESS_VLAN) && ingressVlan() != null && egressVlan() != null; }  }
McastConfig extends Config<ApplicationId> { @Override public boolean isValid() { return hasOnlyFields(INGRESS_VLAN, EGRESS_VLAN) && ingressVlan() != null && egressVlan() != null; }  @Override boolean isValid(); VlanId ingressVlan(); McastConfig setIngressVlan(VlanId vlanId); VlanId egressVlan(); McastConfig setEgressVlan(VlanId vlanId); }
McastConfig extends Config<ApplicationId> { @Override public boolean isValid() { return hasOnlyFields(INGRESS_VLAN, EGRESS_VLAN) && ingressVlan() != null && egressVlan() != null; }  @Override boolean isValid(); VlanId ingressVlan(); McastConfig setIngressVlan(VlanId vlanId); VlanId egressVlan(); McastConfig setEgressVlan(VlanId vlanId);  }