Deleted Redundent Files
[iotcloud.git] / src / java / iotcloud / TableStatus.java
index 83aa9ccfa7e165095af34183042b9e3c807a9f8c..62f3a6dac96ef51439c15222fbe694d6ad816524 100644 (file)
@@ -1,14 +1,26 @@
 package iotcloud;
 import java.nio.ByteBuffer;
 
+/**
+ * TableStatus entries record the current size of the data structure
+ * in slots.  Used to remember the size and to perform resizes.
+ * @author Brian Demsky
+ * @version 1.0
+ */
+
+
 class TableStatus extends Entry {
-       int maxslots;
+       private int maxslots;
 
        TableStatus(Slot slot, int _maxslots) {
                super(slot);
                maxslots=_maxslots;
        }
 
+       int getMaxSlots() {
+               return maxslots;
+       }
+
        static Entry decode(Slot slot, ByteBuffer bb) {
                int maxslots=bb.getInt();
                return new TableStatus(slot, maxslots);
@@ -26,4 +38,8 @@ class TableStatus extends Entry {
        byte getType() {
                return Entry.TypeTableStatus;
        }
+
+       Entry getCopy(Slot s) {
+               return new TableStatus(s, maxslots);
+       }
 }