Interface ObjectGraphWalker.Visitor

All Known Implementing Classes:
SizeOf.CachingSizeOfVisitor, SizeOf.SizeOfVisitor
Enclosing class:
ObjectGraphWalker

static interface ObjectGraphWalker.Visitor
The visitor to execute the function on each node of the graph This is only to be used for the sizing of an object graph in memory!
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    visit(Object object)
    The visit method executed on each node
  • Method Details

    • visit

      long visit(Object object)
      The visit method executed on each node
      Parameters:
      object - the reference at that node
      Returns:
      a long for you to do things with...