Class ListPool.Resource<T>

java.lang.Object
java.util.AbstractCollection<T>
it.unimi.dsi.fastutil.objects.AbstractObjectCollection<T>
it.unimi.dsi.fastutil.objects.AbstractObjectList<T>
it.unimi.dsi.fastutil.objects.ObjectArrayList<T>
com.hypixel.hytale.server.worldgen.util.ListPool.Resource<T>
All Implemented Interfaces:
it.unimi.dsi.fastutil.objects.ObjectCollection<T>, it.unimi.dsi.fastutil.objects.ObjectIterable<T>, it.unimi.dsi.fastutil.objects.ObjectList<T>, it.unimi.dsi.fastutil.Stack<T>, Serializable, AutoCloseable, Cloneable, Comparable<List<? extends T>>, Iterable<T>, Collection<T>, List<T>, RandomAccess, SequencedCollection<T>
Enclosing class:
ListPool<T>

public static class ListPool.Resource<T> extends it.unimi.dsi.fastutil.objects.ObjectArrayList<T> implements AutoCloseable
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from class it.unimi.dsi.fastutil.objects.AbstractObjectList

    it.unimi.dsi.fastutil.objects.AbstractObjectList.ObjectRandomAccessSubList<K>, it.unimi.dsi.fastutil.objects.AbstractObjectList.ObjectSubList<K>
  • Field Summary

    Fields inherited from class it.unimi.dsi.fastutil.objects.ObjectArrayList

    DEFAULT_INITIAL_CAPACITY
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    T[]
     

    Methods inherited from class it.unimi.dsi.fastutil.objects.ObjectArrayList

    add, add, addAll, addAll, addElements, clear, clone, compareTo, compareTo, elements, ensureCapacity, equals, equals, forEach, get, getElements, indexOf, isEmpty, lastIndexOf, listIterator, of, of, remove, remove, removeAll, removeElements, set, setElements, size, size, sort, spliterator, subList, toArray, toList, toListWithExpectedSize, trim, trim, unstableSort, wrap, wrap

    Methods inherited from class it.unimi.dsi.fastutil.objects.AbstractObjectList

    addAll, addElements, contains, hashCode, iterator, listIterator, peek, pop, push, top, toString

    Methods inherited from class AbstractCollection

    containsAll, retainAll

    Methods inherited from class Object

    getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface Collection

    parallelStream, removeIf, stream, toArray

    Methods inherited from interface it.unimi.dsi.fastutil.objects.ObjectList

    addAll, setElements, setElements
  • Constructor Details

    • Resource

      public Resource(ListPool<T> pool)
  • Method Details

    • toArray

      @Nonnull public T[] toArray()
      Specified by:
      toArray in interface Collection<T>
      Specified by:
      toArray in interface List<T>
      Overrides:
      toArray in class it.unimi.dsi.fastutil.objects.ObjectArrayList<T>
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable