Esempio n. 1
0
 @Override
 public String toString() {
   StringBuilder sb = new StringBuilder();
   for (TableEntry entry : entries) {
     sb.append(entry.toString()).append(separator);
   }
   return sb.toString();
 }
Esempio n. 2
0
 /**
  * Write the table as a byte stream
  *
  * @param out the stream to write to
  * @throws IOException
  */
 void write(ByteArrayOutputStream out) throws IOException {
   Nat.write(entries.size(), out);
   for (TableEntry e : entries) {
     e.write(out);
   }
 }