Skip to content

Commit

Permalink
Rename getEstimatedSize to be more clear
Browse files Browse the repository at this point in the history
  • Loading branch information
cberner committed Dec 22, 2015
1 parent 9e5835e commit 6693b3f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -150,7 +150,7 @@ public long estimatedInMemorySize()
long size = INSTANCE_SIZE; long size = INSTANCE_SIZE;
size += keyBlockBuilder.getRetainedSizeInBytes(); size += keyBlockBuilder.getRetainedSizeInBytes();
size += valueBlockBuilder.getRetainedSizeInBytes(); size += valueBlockBuilder.getRetainedSizeInBytes();
size += keySet.getEstimatedSize(); size += keySet.getRetainedSizeInBytes();
return size; return size;
} }


Expand Down
Expand Up @@ -63,7 +63,7 @@ public TypedSet(Type elementType, int expectedSize)
this.containsNullElement = false; this.containsNullElement = false;
} }


public long getEstimatedSize() public long getRetainedSizeInBytes()
{ {
return INSTANCE_SIZE + elementBlock.getRetainedSizeInBytes() + blockPositionByHash.sizeOf(); return INSTANCE_SIZE + elementBlock.getRetainedSizeInBytes() + blockPositionByHash.sizeOf();
} }
Expand Down

0 comments on commit 6693b3f

Please sign in to comment.