Example usage for org.apache.wicket.core.util.lang WicketObjects sizeof

List of usage examples for org.apache.wicket.core.util.lang WicketObjects sizeof

Introduction

In this page you can find the example usage for org.apache.wicket.core.util.lang WicketObjects sizeof.

Prototype

public static long sizeof(final Serializable object) 

Source Link

Document

Computes the size of an object.

Usage

From source file:org.wicketstuff.lazymodel.PropertyModelComparison.java

License:Apache License

private long measureSize(IModel<?> model) {
    long size = WicketObjects.sizeof(model);

    System.out.println(String.format("PropertyModelComparison %s: %s bytes", model.getClass(), size));

    return size;// w  w  w .  j  a va2 s.co m
}