1 package org.openkilda.model;
3 import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
4 import com.fasterxml.jackson.annotation.JsonInclude;
5 import com.fasterxml.jackson.annotation.JsonProperty;
6 import com.fasterxml.jackson.annotation.JsonPropertyOrder;
11 @JsonInclude(JsonInclude.Include.NON_NULL)
12 @JsonIgnoreProperties(ignoreUnknown =
true)
13 @JsonPropertyOrder({
"source_switch",
"target_switch",
"flow_count"})
16 @JsonProperty(
"source_switch")
17 private String srcSwitch;
19 @JsonProperty(
"target_switch")
20 private String dstSwitch;
22 @JsonProperty(
"source_switch_name")
23 private String srcSwitchName;
25 @JsonProperty(
"target_switch_name")
26 private String dstSwitchName;
28 @JsonProperty(
"flow_count")
29 private Integer flowCount;
46 this.srcSwitch = srcSwitch;
64 this.dstSwitch = dstSwitch;
72 this.srcSwitchName = srcSwitchName;
80 this.dstSwitchName = dstSwitchName;
98 this.flowCount = flowCount;
107 return srcSwitch.hashCode() + dstSwitch.hashCode();
111 public boolean equals(
final Object obj) {
114 return (flowsCount.srcSwitch.equalsIgnoreCase(srcSwitch)
115 && flowsCount.dstSwitch.equalsIgnoreCase(dstSwitch))
116 || (flowsCount.srcSwitch.equalsIgnoreCase(dstSwitch)
117 && flowsCount.dstSwitch.equalsIgnoreCase(srcSwitch));
void setFlowCount(final Integer flowCount)
void setDstSwitch(final String dstSwitch)
void setSrcSwitchName(String srcSwitchName)
void incrementFlowCount()
boolean equals(final Object obj)
String getSrcSwitchName()
String getDstSwitchName()
void setSrcSwitch(final String srcSwitch)
void setDstSwitchName(String dstSwitchName)