Changed maximumEntries to correct int rather than long
[controller.git] / opendaylight / sal / api / src / main / java / org / opendaylight / controller / sal / reader / NodeTableStatistics.java
index eb33ad67995f2621fd95024c0736e897fb6f18ee..e4c3961a140da41ff0078c893fe198677c2353b7 100644 (file)
@@ -48,6 +48,7 @@ public class NodeTableStatistics implements Serializable {
         result = prime * result + activeCount;
         result = prime * result + (int) (lookupCount ^ (lookupCount >>> 32));
         result = prime * result + (int) (matchedCount ^ (matchedCount >>> 32));
+        result = prime * result + maximumEntries;
         result = prime * result + ((name == null) ? 0 : name.hashCode());
         result = prime * result + ((nodeTable == null) ? 0 : nodeTable.hashCode());
         return result;
@@ -74,6 +75,9 @@ public class NodeTableStatistics implements Serializable {
         if (matchedCount != other.matchedCount) {
             return false;
         }
+        if (maximumEntries != other.maximumEntries) {
+            return false;
+        }
         if (name == null) {
             if (other.name != null) {
                 return false;
@@ -169,7 +173,7 @@ public class NodeTableStatistics implements Serializable {
     /**
      * @return the maximumEntries
      */
-    public long getMaximumEntries() {
+    public int getMaximumEntries() {
         return maximumEntries;
     }
 
@@ -185,6 +189,7 @@ public class NodeTableStatistics implements Serializable {
         return "NodeTableStats[tableId = " + nodeTable
                 + ", activeCount = " + activeCount
                 + ", lookupCount = " + lookupCount
-                + ", matchedCount = " + matchedCount + "]";
+                + ", matchedCount = " + matchedCount
+                + ", maximumEntries = " + maximumEntries + "]";
     }
 }