@Test public void testEquals() { new EqualsTester() .addEqualityGroup(defaultFlowRule1, sameAsDefaultFlowRule1) .testEquals(); }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj instanceof DefaultFlowRule) { DefaultFlowRule that = (DefaultFlowRule) obj; return Objects.equals(deviceId, that.deviceId) && Objects.equals(priority, that.priority) && Objects.equals(selector, that.selector) && Objects.equals(tableId, that.tableId) && Objects.equals(payLoad, that.payLoad); } return false; }
DefaultFlowRule implements FlowRule { @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj instanceof DefaultFlowRule) { DefaultFlowRule that = (DefaultFlowRule) obj; return Objects.equals(deviceId, that.deviceId) && Objects.equals(priority, that.priority) && Objects.equals(selector, that.selector) && Objects.equals(tableId, that.tableId) && Objects.equals(payLoad, that.payLoad); } return false; } }
DefaultFlowRule implements FlowRule { @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj instanceof DefaultFlowRule) { DefaultFlowRule that = (DefaultFlowRule) obj; return Objects.equals(deviceId, that.deviceId) && Objects.equals(priority, that.priority) && Objects.equals(selector, that.selector) && Objects.equals(tableId, that.tableId) && Objects.equals(payLoad, that.payLoad); } return false; } DefaultFlowRule(FlowRule rule); private  DefaultFlowRule(DeviceId deviceId, TrafficSelector selector,
                            TrafficTreatment treatment, Integer priority,
                            FlowId flowId, Boolean permanent, Integer timeout,
                            Integer tableId);  DefaultFlowRule(DeviceId deviceId, TrafficSelector selector,
                           TrafficTreatment treatment, int priority,
                           ApplicationId appId, int timeout, boolean permanent,
                           FlowRuleExtPayLoad payLoad);  DefaultFlowRule(DeviceId deviceId, TrafficSelector selector,
                           TrafficTreatment treatment, int priority,
                           ApplicationId appId, GroupId groupId, int timeout,
                           boolean permanent, FlowRuleExtPayLoad payLoad); }
DefaultFlowRule implements FlowRule { @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj instanceof DefaultFlowRule) { DefaultFlowRule that = (DefaultFlowRule) obj; return Objects.equals(deviceId, that.deviceId) && Objects.equals(priority, that.priority) && Objects.equals(selector, that.selector) && Objects.equals(tableId, that.tableId) && Objects.equals(payLoad, that.payLoad); } return false; } DefaultFlowRule(FlowRule rule); private  DefaultFlowRule(DeviceId deviceId, TrafficSelector selector,
                            TrafficTreatment treatment, Integer priority,
                            FlowId flowId, Boolean permanent, Integer timeout,
                            Integer tableId);  DefaultFlowRule(DeviceId deviceId, TrafficSelector selector,
                           TrafficTreatment treatment, int priority,
                           ApplicationId appId, int timeout, boolean permanent,
                           FlowRuleExtPayLoad payLoad);  DefaultFlowRule(DeviceId deviceId, TrafficSelector selector,
                           TrafficTreatment treatment, int priority,
                           ApplicationId appId, GroupId groupId, int timeout,
                           boolean permanent, FlowRuleExtPayLoad payLoad); @Override FlowId id(); @Override short appId(); @Override GroupId groupId(); @Override int priority(); @Override DeviceId deviceId(); @Override TrafficSelector selector(); @Override TrafficTreatment treatment(); @Override /* * The priority and statistics can change on a given treatment and selector * * (non-Javadoc) * * @see java.lang.Object#equals(java.lang.Object) */ int hashCode(); @Override /* * The priority and statistics can change on a given treatment and selector * * (non-Javadoc) * * @see java.lang.Object#equals(java.lang.Object) */ boolean equals(Object obj); @Override boolean exactMatch(FlowRule rule); @Override String toString(); @Override int timeout(); @Override boolean isPermanent(); @Override int tableId(); @Beta long created(); static Builder builder(); @Override FlowRuleExtPayLoad payLoad(); }
DefaultFlowRule implements FlowRule { @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj instanceof DefaultFlowRule) { DefaultFlowRule that = (DefaultFlowRule) obj; return Objects.equals(deviceId, that.deviceId) && Objects.equals(priority, that.priority) && Objects.equals(selector, that.selector) && Objects.equals(tableId, that.tableId) && Objects.equals(payLoad, that.payLoad); } return false; } DefaultFlowRule(FlowRule rule); private  DefaultFlowRule(DeviceId deviceId, TrafficSelector selector,
                            TrafficTreatment treatment, Integer priority,
                            FlowId flowId, Boolean permanent, Integer timeout,
                            Integer tableId);  DefaultFlowRule(DeviceId deviceId, TrafficSelector selector,
                           TrafficTreatment treatment, int priority,
                           ApplicationId appId, int timeout, boolean permanent,
                           FlowRuleExtPayLoad payLoad);  DefaultFlowRule(DeviceId deviceId, TrafficSelector selector,
                           TrafficTreatment treatment, int priority,
                           ApplicationId appId, GroupId groupId, int timeout,
                           boolean permanent, FlowRuleExtPayLoad payLoad); @Override FlowId id(); @Override short appId(); @Override GroupId groupId(); @Override int priority(); @Override DeviceId deviceId(); @Override TrafficSelector selector(); @Override TrafficTreatment treatment(); @Override /* * The priority and statistics can change on a given treatment and selector * * (non-Javadoc) * * @see java.lang.Object#equals(java.lang.Object) */ int hashCode(); @Override /* * The priority and statistics can change on a given treatment and selector * * (non-Javadoc) * * @see java.lang.Object#equals(java.lang.Object) */ boolean equals(Object obj); @Override boolean exactMatch(FlowRule rule); @Override String toString(); @Override int timeout(); @Override boolean isPermanent(); @Override int tableId(); @Beta long created(); static Builder builder(); @Override FlowRuleExtPayLoad payLoad();  }