Top Description Fields Constructors Methods
org.hibernate.bytecode.enhance.internal.tracker

public final Class SimpleCollectionTracker

extends Object
implements CollectionTracker
Class Inheritance
All Implemented Interfaces
org.hibernate.bytecode.enhance.spi.CollectionTracker
Imports
java.util.Arrays, org.hibernate.bytecode.enhance.spi.CollectionTracker, org.hibernate.internal.util.collections.ArrayHelper

small low memory class to keep track of the number of elements in a collection
Author
Ståle W. Pedersen

Field Summary

Modifier and TypeField and Description
private String[]
private int[]

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
public int
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

namesback to summary
private String[] names
sizesback to summary
private int[] sizes

Constructor Detail

SimpleCollectionTrackerback to summary
public SimpleCollectionTracker()

Method Detail

addback to summary
public void add(String name, int size)

Implements org.hibernate.bytecode.enhance.spi.CollectionTracker.add.

Annotations
@Override
getSizeback to summary
public int getSize(String name)

Implements org.hibernate.bytecode.enhance.spi.CollectionTracker.getSize.

Annotations
@Override