public void save(DataOutputStream out, TableWriter writer) throws IOException { HashtableOfStringAndInt filteredHashtable = new HashtableOfStringAndInt((int) (elementSize * GROWTH_FACTOR)); String currentKey; for (int i = keyTable.length; --i >= 0;) if ((currentKey = keyTable[i]) != null && writer.shouldCache(valueTable[i])) filteredHashtable.put(currentKey, valueTable[i]); filteredHashtable.save(out);
public void save(DataOutputStream out) throws IOException { out.writeInt(elementSize); int tableSize = keyTable.length; out.writeInt(tableSize); out.writeInt(threshold); for (int i = 0; i < tableSize; i++) { writeStringOrNull(keyTable[i], out); out.writeInt(valueTable[i]); }
	public void save(DataOutputStream out, TableWriter writer) throws IOException {		HashtableOfStringAndInt filteredHashtable = new HashtableOfStringAndInt((int) (elementSize * GROWTH_FACTOR));		String currentKey;		for (int i = keyTable.length; --i >= 0;)			if ((currentKey = keyTable[i]) != null && writer.shouldCache(valueTable[i]))				filteredHashtable.put(currentKey, valueTable[i]);		filteredHashtable.save(out);	}