hunt.collection.ArrayList

Undocumented in source.

Members

Classes

ArrayList
class ArrayList(E)
LazyList
class LazyList

Lazy List creation. <p> A List helper class that attempts to avoid unnecessary List creation. If a method needs to create a List to return, but it is expected that this will either be empty or frequently contain a single item, then using LazyList will avoid additional object creations by using {@link Collections#EMPTY_LIST} or {@link Collections#singletonList(Object)} where possible. </p> <p> LazyList works by passing an opaque representation of the list in and out of all the LazyList methods. This opaque object is either null for an empty list, an Object for a list with a single entry or an {@link ArrayList} for a list of items. </p> <strong>Usage</strong>

Meta