Top Description Inners Fields Constructors Methods
org.glassfish.jaxb.runtime.v2.runtime.reflect

public abstract Class Lister<BeanT, PropT, ItemT, PackT>

extends Object
Class Inheritance
Known Direct Subclasses
org.glassfish.jaxb.runtime.v2.runtime.reflect.Lister.ArrayLister, org.glassfish.jaxb.runtime.v2.runtime.reflect.Lister.CollectionLister, org.glassfish.jaxb.runtime.v2.runtime.reflect.Lister.IDREFS, org.glassfish.jaxb.runtime.v2.runtime.reflect.PrimitiveArrayListerBoolean, org.glassfish.jaxb.runtime.v2.runtime.reflect.PrimitiveArrayListerByte, org.glassfish.jaxb.runtime.v2.runtime.reflect.PrimitiveArrayListerCharacter, org.glassfish.jaxb.runtime.v2.runtime.reflect.PrimitiveArrayListerDouble, org.glassfish.jaxb.runtime.v2.runtime.reflect.PrimitiveArrayListerFloat, org.glassfish.jaxb.runtime.v2.runtime.reflect.PrimitiveArrayListerInteger, org.glassfish.jaxb.runtime.v2.runtime.reflect.PrimitiveArrayListerLong, org.glassfish.jaxb.runtime.v2.runtime.reflect.PrimitiveArrayListerShort, org.glassfish.jaxb.runtime.v2.runtime.reflect.AdaptedLister
Imports
com.sun.istack.SAXException2, org.glassfish.jaxb.runtime.api.AccessorException, org.glassfish.jaxb.core.v2.ClassFactory, .TODO, org.glassfish.jaxb.core.v2.model.core.Adapter, .ID, org.glassfish.jaxb.runtime.v2.runtime.XMLSerializer, org.glassfish.jaxb.core.v2.runtime.unmarshaller.LocatorEx, org.glassfish.jaxb.runtime.v2.runtime.unmarshaller.Patcher, .UnmarshallingContext, jakarta.xml.bind.JAXBException, org.xml.sax.SAXException, java.lang.ref.WeakReference, java.lang.reflect.Array, .ParameterizedType, .Type, java.util.*, java.util.concurrent.Callable

Used to list individual values of a multi-value property, and to pack individual values into a multi-value property.
Author
Kohsuke Kawaguchi ([email protected])

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
Lister.ArrayLister<BeanT, ItemT>

Lister for an array.

public static class
Lister.CollectionLister<BeanT, T extends Collection<E>>

Lister for a collection

private static class
Lister.IDREFS<BeanT, PropT>

Lister for IDREFS.

public static class
Lister.IDREFSIterator

Iterator for IDREFS lister.

public static class
Lister.Pack<ItemT>

Field Summary

Modifier and TypeField and Description
private static final Map<Class<T>, WeakReference<Lister<BeanT, PropT, ItemT, PackT>>>
arrayListerCache

Cache instances of ArrayListers.

private static final Class<T>[]
private static final ListIterator<E>
public static final Lister<BeanT, PropT, ItemT, PackT>
pack-priv static final Map<Class<T>, Lister<BeanT, PropT, ItemT, PackT>>
primitiveArrayListers

Listers for the primitive type arrays, keyed by their primitive Class object.

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public abstract void
addToPack(PackT pack, ItemT newValue)

Once the startPacking is called, you can add values to the pack by using this method.

public static <BeanT, PropT, ItemT, PackT> Lister<BeanT, PropT, ItemT, PackT>
create(Type
the type of the field that stores the collection
fieldType
,
ID
ID-ness of the property.
idness
,
Adapter<Type, Class<T>>
adapter to be used for individual items. can be null.
adapter
)

Gets a reference to the appropriate object if the field is a multi-value field.

public abstract void
endPacking(PackT pack, BeanT bean, Accessor<BeanT, PropT> acc)

Finally, call this method to wraps up the pack.

private static Lister<BeanT, PropT, ItemT, PackT>
getArrayLister(Class<T> componentType)

Creates a lister for array type.

public static <A, B, C, D> Lister<A, B, C, D>
getErrorInstance()

Gets the special used to recover from an error.

private static Class<T>
getImplClass(Class<?> fieldType)

public abstract ListIterator<ItemT>
iterator(PropT multiValueProp, XMLSerializer
This parameter is used to support ID/IDREF handling.
context
)

Iterates values of a multi-value property.

public abstract void
reset(BeanT o, Accessor<BeanT, PropT> acc)

Clears the values of the property.

public abstract PackT
startPacking(BeanT bean, Accessor<BeanT, PropT> acc)

Setting values to a multi-value property starts by creating a transient object called "pack" from the current field.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

arrayListerCacheback to summary
private static final Map<Class<T>, WeakReference<Lister<BeanT, PropT, ItemT, PackT>>> arrayListerCache

Cache instances of ArrayListers.

COLLECTION_IMPL_CLASSESback to summary
private static final Class<T>[] COLLECTION_IMPL_CLASSES
EMPTY_ITERATORback to summary
private static final ListIterator<E> EMPTY_ITERATOR
ERRORback to summary
public static final Lister<BeanT, PropT, ItemT, PackT> ERROR
primitiveArrayListersback to summary
pack-priv static final Map<Class<T>, Lister<BeanT, PropT, ItemT, PackT>> primitiveArrayListers

Listers for the primitive type arrays, keyed by their primitive Class object.

Constructor Detail

Listerback to summary
protected Lister()

Method Detail

addToPackback to summary
public abstract void addToPack(PackT pack, ItemT newValue) throws AccessorException

Once the startPacking is called, you can add values to the pack by using this method.

createback to summary
public static <BeanT, PropT, ItemT, PackT> Lister<BeanT, PropT, ItemT, PackT> create(Type fieldType, ID idness, Adapter<Type, Class<T>> adapter)

Gets a reference to the appropriate object if the field is a multi-value field. Otherwise null.

Parameters
fieldType:Type

the type of the field that stores the collection

idness:ID

ID-ness of the property.

adapter:Adapter<Type, Class<T>>

adapter to be used for individual items. can be null.

endPackingback to summary
public abstract void endPacking(PackT pack, BeanT bean, Accessor<BeanT, PropT> acc) throws AccessorException

Finally, call this method to wraps up the pack. This method may update the field of the given bean.

getArrayListerback to summary
private static Lister<BeanT, PropT, ItemT, PackT> getArrayLister(Class<T> componentType)

Creates a lister for array type.

getErrorInstanceback to summary
public static <A, B, C, D> Lister<A, B, C, D> getErrorInstance()

Gets the special used to recover from an error.

Annotations
@SuppressWarnings:unchecked
getImplClassback to summary
private static Class<T> getImplClass(Class<?> fieldType)
iteratorback to summary
public abstract ListIterator<ItemT> iterator(PropT multiValueProp, XMLSerializer context)

Iterates values of a multi-value property.

Parameters
context:XMLSerializer

This parameter is used to support ID/IDREF handling.

resetback to summary
public abstract void reset(BeanT o, Accessor<BeanT, PropT> acc) throws AccessorException

Clears the values of the property.

startPackingback to summary
public abstract PackT startPacking(BeanT bean, Accessor<BeanT, PropT> acc) throws AccessorException

Setting values to a multi-value property starts by creating a transient object called "pack" from the current field.

org.glassfish.jaxb.runtime.v2.runtime.reflect back to summary

private final Class Lister.ArrayLister<BeanT, ItemT>

extends Lister<BeanT, ItemT[], ItemT, Lister.Pack<ItemT>>
Class Inheritance

Lister for an array.

Array packing is slower, but we expect this to be used less frequently than the CollectionLister.

Field Summary

Modifier and TypeField and Description
private final Class<ItemT>
Inherited from org.glassfish.jaxb.runtime.v2.runtime.reflect.Lister:
ERRORprimitiveArrayListers

Constructor Summary

AccessConstructor and Description
public
ArrayLister(Class<ItemT> itemType)

Method Summary

Modifier and TypeMethod and Description
public void
addToPack(Lister.Pack<ItemT> objects, ItemT o)

Implements abstract org.glassfish.jaxb.runtime.v2.runtime.reflect.Lister.addToPack.

Once the startPacking is called, you can add values to the pack by using this method.

public void
endPacking(Lister.Pack<ItemT> pack, BeanT bean, Accessor<BeanT, ItemT[]> acc)

Implements abstract org.glassfish.jaxb.runtime.v2.runtime.reflect.Lister.endPacking.

Finally, call this method to wraps up the pack.

public ListIterator<ItemT>
iterator(final ItemT[] objects, XMLSerializer context)

Implements abstract org.glassfish.jaxb.runtime.v2.runtime.reflect.Lister.iterator.

Iterates values of a multi-value property.

public void
reset(BeanT o, Accessor<BeanT, ItemT[]> acc)

Implements abstract org.glassfish.jaxb.runtime.v2.runtime.reflect.Lister.reset.

Clears the values of the property.

public Lister.Pack<ItemT>
startPacking(BeanT current, Accessor<BeanT, ItemT[]> acc)

Implements abstract org.glassfish.jaxb.runtime.v2.runtime.reflect.Lister.startPacking.

Setting values to a multi-value property starts by creating a transient object called "pack" from the current field.

Inherited from org.glassfish.jaxb.runtime.v2.runtime.reflect.Lister:
creategetErrorInstance

Field Detail

itemTypeback to summary
private final Class<ItemT> itemType

Constructor Detail

ArrayListerback to summary
public ArrayLister(Class<ItemT> itemType)

Method Detail

addToPackback to summary
public void addToPack(Lister.Pack<ItemT> objects, ItemT o)

Implements abstract org.glassfish.jaxb.runtime.v2.runtime.reflect.Lister.addToPack.

Doc from org.glassfish.jaxb.runtime.v2.runtime.reflect.Lister.addToPack.

Once the startPacking is called, you can add values to the pack by using this method.

Annotations
@Override
endPackingback to summary
public void endPacking(Lister.Pack<ItemT> pack, BeanT bean, Accessor<BeanT, ItemT[]> acc) throws AccessorException

Implements abstract org.glassfish.jaxb.runtime.v2.runtime.reflect.Lister.endPacking.

Doc from org.glassfish.jaxb.runtime.v2.runtime.reflect.Lister.endPacking.

Finally, call this method to wraps up the pack. This method may update the field of the given bean.

Annotations
@Override
iteratorback to summary
public ListIterator<ItemT> iterator(final ItemT[] objects, XMLSerializer context)

Implements abstract org.glassfish.jaxb.runtime.v2.runtime.reflect.Lister.iterator.

Doc from org.glassfish.jaxb.runtime.v2.runtime.reflect.Lister.iterator.

Iterates values of a multi-value property.

Annotations
@Override
resetback to summary
public void reset(BeanT o, Accessor<BeanT, ItemT[]> acc) throws AccessorException

Implements abstract org.glassfish.jaxb.runtime.v2.runtime.reflect.Lister.reset.

Doc from org.glassfish.jaxb.runtime.v2.runtime.reflect.Lister.reset.

Clears the values of the property.

Annotations
@Override
startPackingback to summary
public Lister.Pack<ItemT> startPacking(BeanT current, Accessor<BeanT, ItemT[]> acc)

Implements abstract org.glassfish.jaxb.runtime.v2.runtime.reflect.Lister.startPacking.

Doc from org.glassfish.jaxb.runtime.v2.runtime.reflect.Lister.startPacking.

Setting values to a multi-value property starts by creating a transient object called "pack" from the current field.

Annotations
@Override
org.glassfish.jaxb.runtime.v2.runtime.reflect back to summary

public final Class Lister.CollectionLister<BeanT, T extends Collection<E>>

extends Lister<BeanT, T extends Collection<E>, Object, T extends Collection<E>>
Class Inheritance

Lister for a collection

Field Summary

Modifier and TypeField and Description
private final Class<? extends T>
implClass

Sometimes we need to create a new instance of a collection.

Inherited from org.glassfish.jaxb.runtime.v2.runtime.reflect.Lister:
ERRORprimitiveArrayListers

Constructor Summary

AccessConstructor and Description
public
CollectionLister(Class<? extends T> implClass)

Method Summary

Modifier and TypeMethod and Description
public void
addToPack(T collection, Object o)

Implements abstract org.glassfish.jaxb.runtime.v2.runtime.reflect.Lister.addToPack.

Once the startPacking is called, you can add values to the pack by using this method.

public void
endPacking(T collection, BeanT bean, Accessor<BeanT, T> acc)

Implements abstract org.glassfish.jaxb.runtime.v2.runtime.reflect.Lister.endPacking.

Finally, call this method to wraps up the pack.

public ListIterator<Object>
iterator(T collection, XMLSerializer context)

Implements abstract org.glassfish.jaxb.runtime.v2.runtime.reflect.Lister.iterator.

Iterates values of a multi-value property.

public void
reset(BeanT bean, Accessor<BeanT, T> acc)

Implements abstract org.glassfish.jaxb.runtime.v2.runtime.reflect.Lister.reset.

Clears the values of the property.

public T
startPacking(BeanT bean, Accessor<BeanT, T> acc)

Implements abstract org.glassfish.jaxb.runtime.v2.runtime.reflect.Lister.startPacking.

Setting values to a multi-value property starts by creating a transient object called "pack" from the current field.

Inherited from org.glassfish.jaxb.runtime.v2.runtime.reflect.Lister:
creategetErrorInstance

Field Detail

implClassback to summary
private final Class<? extends T> implClass

Sometimes we need to create a new instance of a collection. This is such an implementation class.

Constructor Detail

CollectionListerback to summary
public CollectionLister(Class<? extends T> implClass)

Method Detail

addToPackback to summary
public void addToPack(T collection, Object o)

Implements abstract org.glassfish.jaxb.runtime.v2.runtime.reflect.Lister.addToPack.

Doc from org.glassfish.jaxb.runtime.v2.runtime.reflect.Lister.addToPack.

Once the startPacking is called, you can add values to the pack by using this method.

Annotations
@Override
endPackingback to summary
public void endPacking(T collection, BeanT bean, Accessor<BeanT, T> acc) throws AccessorException

Implements abstract org.glassfish.jaxb.runtime.v2.runtime.reflect.Lister.endPacking.

Doc from org.glassfish.jaxb.runtime.v2.runtime.reflect.Lister.endPacking.

Finally, call this method to wraps up the pack. This method may update the field of the given bean.

Annotations
@Override
iteratorback to summary
public ListIterator<Object> iterator(T collection, XMLSerializer context)

Implements abstract org.glassfish.jaxb.runtime.v2.runtime.reflect.Lister.iterator.

Doc from org.glassfish.jaxb.runtime.v2.runtime.reflect.Lister.iterator.

Iterates values of a multi-value property.

Annotations
@Override
resetback to summary
public void reset(BeanT bean, Accessor<BeanT, T> acc) throws AccessorException

Implements abstract org.glassfish.jaxb.runtime.v2.runtime.reflect.Lister.reset.

Doc from org.glassfish.jaxb.runtime.v2.runtime.reflect.Lister.reset.

Clears the values of the property.

Annotations
@Override
startPackingback to summary
public T startPacking(BeanT bean, Accessor<BeanT, T> acc) throws AccessorException

Implements abstract org.glassfish.jaxb.runtime.v2.runtime.reflect.Lister.startPacking.

Doc from org.glassfish.jaxb.runtime.v2.runtime.reflect.Lister.startPacking.

Setting values to a multi-value property starts by creating a transient object called "pack" from the current field.

Annotations
@Override
org.glassfish.jaxb.runtime.v2.runtime.reflect back to summary

private final Class Lister.IDREFS<BeanT, PropT>

extends Lister<BeanT, PropT, String, Lister.IDREFS<BeanT, PropT>.Pack>
Class Inheritance

Lister for IDREFS.

Nested and Inner Type Summary

Modifier and TypeClass and Description
private class
Lister.IDREFS.Pack

PackT for this lister.

Field Summary

Modifier and TypeField and Description
private final Lister<BeanT, PropT, Object, Object>
private final Class<T>
itemType

Expected type to which IDREF resolves to.

Inherited from org.glassfish.jaxb.runtime.v2.runtime.reflect.Lister:
ERRORprimitiveArrayListers

Constructor Summary

AccessConstructor and Description
public
IDREFS(Lister<BeanT, PropT, ItemT, PackT> core, Class<T> itemType)

Method Summary

Modifier and TypeMethod and Description
public void
addToPack(Lister.IDREFS<BeanT, PropT>.Pack pack, String item)

Implements abstract org.glassfish.jaxb.runtime.v2.runtime.reflect.Lister.addToPack.

Once the startPacking is called, you can add values to the pack by using this method.

public void
endPacking(Lister.IDREFS<BeanT, PropT>.Pack pack, BeanT bean, Accessor<BeanT, PropT> acc)

Implements abstract org.glassfish.jaxb.runtime.v2.runtime.reflect.Lister.endPacking.

Finally, call this method to wraps up the pack.

public ListIterator<String>
iterator(PropT prop, XMLSerializer context)

Implements abstract org.glassfish.jaxb.runtime.v2.runtime.reflect.Lister.iterator.

Iterates values of a multi-value property.

public void
reset(BeanT bean, Accessor<BeanT, PropT> acc)

Implements abstract org.glassfish.jaxb.runtime.v2.runtime.reflect.Lister.reset.

Clears the values of the property.

public Lister.IDREFS<BeanT, PropT>.Pack
startPacking(BeanT bean, Accessor<BeanT, PropT> acc)

Implements abstract org.glassfish.jaxb.runtime.v2.runtime.reflect.Lister.startPacking.

Setting values to a multi-value property starts by creating a transient object called "pack" from the current field.

Inherited from org.glassfish.jaxb.runtime.v2.runtime.reflect.Lister:
creategetErrorInstance

Field Detail

coreback to summary
private final Lister<BeanT, PropT, Object, Object> core
itemTypeback to summary
private final Class<T> itemType

Expected type to which IDREF resolves to.

Constructor Detail

IDREFSback to summary
public IDREFS(Lister<BeanT, PropT, ItemT, PackT> core, Class<T> itemType)

Method Detail

addToPackback to summary
public void addToPack(Lister.IDREFS<BeanT, PropT>.Pack pack, String item)

Implements abstract org.glassfish.jaxb.runtime.v2.runtime.reflect.Lister.addToPack.

Doc from org.glassfish.jaxb.runtime.v2.runtime.reflect.Lister.addToPack.

Once the startPacking is called, you can add values to the pack by using this method.

Annotations
@Override
endPackingback to summary
public void endPacking(Lister.IDREFS<BeanT, PropT>.Pack pack, BeanT bean, Accessor<BeanT, PropT> acc)

Implements abstract org.glassfish.jaxb.runtime.v2.runtime.reflect.Lister.endPacking.

Doc from org.glassfish.jaxb.runtime.v2.runtime.reflect.Lister.endPacking.

Finally, call this method to wraps up the pack. This method may update the field of the given bean.

Annotations
@Override
iteratorback to summary
public ListIterator<String> iterator(PropT prop, XMLSerializer context)

Implements abstract org.glassfish.jaxb.runtime.v2.runtime.reflect.Lister.iterator.

Doc from org.glassfish.jaxb.runtime.v2.runtime.reflect.Lister.iterator.

Iterates values of a multi-value property.

Annotations
@Override
resetback to summary
public void reset(BeanT bean, Accessor<BeanT, PropT> acc) throws AccessorException

Implements abstract org.glassfish.jaxb.runtime.v2.runtime.reflect.Lister.reset.

Doc from org.glassfish.jaxb.runtime.v2.runtime.reflect.Lister.reset.

Clears the values of the property.

Annotations
@Override
startPackingback to summary
public Lister.IDREFS<BeanT, PropT>.Pack startPacking(BeanT bean, Accessor<BeanT, PropT> acc)

Implements abstract org.glassfish.jaxb.runtime.v2.runtime.reflect.Lister.startPacking.

Doc from org.glassfish.jaxb.runtime.v2.runtime.reflect.Lister.startPacking.

Setting values to a multi-value property starts by creating a transient object called "pack" from the current field.

Annotations
@Override
org.glassfish.jaxb.runtime.v2.runtime.reflect back to summary

private Class Lister.IDREFS.Pack

extends Object
implements Patcher
Class Inheritance
  • java.lang.Object
  • org.glassfish.jaxb.runtime.v2.runtime.reflect.Lister.IDREFS.Pack
All Implemented Interfaces
org.glassfish.jaxb.runtime.v2.runtime.unmarshaller.Patcher

PackT for this lister.

Field Summary

Modifier and TypeField and Description
private final Accessor<BeanT, PropT>
private final BeanT
private final UnmarshallingContext
private final List<String>
private final LocatorEx

Constructor Summary

AccessConstructor and Description
public
Pack(BeanT bean, Accessor<BeanT, PropT> acc)

Method Summary

Modifier and TypeMethod and Description
public void
add(String item)

public void
run()

Implements org.glassfish.jaxb.runtime.v2.runtime.unmarshaller.Patcher.run.

Resolves IDREFS and fill in the actual array.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

accback to summary
private final Accessor<BeanT, PropT> acc
beanback to summary
private final BeanT bean
contextback to summary
private final UnmarshallingContext context
idrefsback to summary
private final List<String> idrefs
locationback to summary
private final LocatorEx location

Constructor Detail

Packback to summary
public Pack(BeanT bean, Accessor<BeanT, PropT> acc)

Method Detail

addback to summary
public void add(String item)
runback to summary
public void run() throws SAXException

Implements org.glassfish.jaxb.runtime.v2.runtime.unmarshaller.Patcher.run.

Resolves IDREFS and fill in the actual array.

Annotations
@Override
org.glassfish.jaxb.runtime.v2.runtime.reflect back to summary

public final Class Lister.IDREFSIterator

extends Object
implements ListIterator<String>
Class Inheritance
  • java.lang.Object
  • org.glassfish.jaxb.runtime.v2.runtime.reflect.Lister.IDREFSIterator
All Implemented Interfaces
org.glassfish.jaxb.runtime.v2.runtime.reflect.ListIterator

Iterator for IDREFS lister.

Only in ArrayElementProperty we need to get the actual referenced object. This is a kind of ugly way to make that work.

Field Summary

Modifier and TypeField and Description
private final XMLSerializer
private final ListIterator<E>
i

private Object

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public boolean
public Object
last()

Returns the last referenced object (not just its ID)

public String
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

contextback to summary
private final XMLSerializer context
iback to summary
private final ListIterator<E> i
lastback to summary
private Object last

Constructor Detail

IDREFSIteratorback to summary
private IDREFSIterator(ListIterator<E> i, XMLSerializer context)

Method Detail

hasNextback to summary
public boolean hasNext()

Implements org.glassfish.jaxb.runtime.v2.runtime.reflect.ListIterator.hasNext.

Doc from org.glassfish.jaxb.runtime.v2.runtime.reflect.ListIterator.hasNext.

Works like Iterator#hasNext().

Annotations
@Override
lastback to summary
public Object last()

Returns the last referenced object (not just its ID)

nextback to summary
public String next() throws SAXException, JAXBException

Implements org.glassfish.jaxb.runtime.v2.runtime.reflect.ListIterator.next.

Doc from org.glassfish.jaxb.runtime.v2.runtime.reflect.ListIterator.next.

Works like Iterator#next().

Annotations
@Override
Exceptions
SAXException:
if an error is found, reported, and we were told to abort
JAXBException:
if an error is found, reported, and we were told to abort
org.glassfish.jaxb.runtime.v2.runtime.reflect back to summary

public final Class Lister.Pack<ItemT>

extends ArrayList<ItemT>
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final Class<ItemT>
private static final long

Constructor Summary

AccessConstructor and Description
public
Pack(Class<ItemT> itemType)

Method Summary

Modifier and TypeMethod and Description
public ItemT[]
Inherited from java.util.ArrayList:
addaddaddAlladdAlladdFirstaddLastclearclonecontainsensureCapacityequalsforEachgetgetFirstgetLasthashCodeindexOfisEmptyiteratorlastIndexOflistIteratorlistIteratorremoveremoveremoveAllremoveFirstremoveIfremoveLastremoveRangereplaceAllretainAllsetsizesortspliteratorsubListtoArraytoArraytrimToSize

Field Detail

itemTypeback to summary
private final Class<ItemT> itemType
serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.util.ArrayList.serialVersionUID.

Constructor Detail

Packback to summary
public Pack(Class<ItemT> itemType)

Method Detail

buildback to summary
public ItemT[] build()