hazelcast/src/main/java/com/hazelcast/map/DefaultRecordStore.java
private long calculateRecordSize(Collection<Record> collection) {
        long totalSize = 0L;
        for (Record record : collection) {
            totalSize += calculateRecordSize(record);
        }
        return totalSize;
    }
/**
     * Returns total size of collection.
     *
     * @param collection which's size to be calculated.
     * @return total size of collection.
     */
Returns total size of collection.
@param collection which's size to be calculated.
@return total size of collection.
Returns total size of collection . @param collection which ' s size to be calculated . @return total size of collection .
private long calculateRecordSize(Collection<Record> collection) {
        long totalSize = 0L;
        for (Record record : collection) {
            totalSize += calculateRecordSize(record);
        }
        return totalSize;
    }
private long calculateRecordSize ( Collection < Record > collection ) { long totalSize = 0L ; for ( Record record : collection ) { totalSize += calculateRecordSize ( record ) ; } return totalSize ; }
Returns total size of collection.
Returns total size of collection .