/** Returns a String representation of the receiver. */ public String toString() { String s = this.getClass().getName(); s = s.substring(s.lastIndexOf('.') + 1); int b = bufferSet.b(); int k = bufferSet.k(); return s + "(mem=" + memory() + ", b=" + b + ", k=" + k + ", size=" + size() + ", totalSize=" + this.bufferSet.totalSize() + ")"; }
/** * Returns the number of elements currently needed to store all contained elements. This number * usually differs from the results of method <tt>size()</tt>, according to the underlying * datastructure. */ public long totalMemory() { return bufferSet.b() * bufferSet.k(); }