Class ArrayCollection<E>

java.lang.Object
com.linkedin.venice.utils.collections.ArrayCollection<E>
All Implemented Interfaces:
Iterable<E>, Collection<E>

public class ArrayCollection<E> extends Object implements Collection<E>
Expose an array of ArrayCollection as an immutable Collection<E> Changes to the array are reflected in the collection.
  • Constructor Details

    • ArrayCollection

      public ArrayCollection(E[] array)
    • ArrayCollection

      public ArrayCollection(E[] array, IntSupplier populatedSizeSupplier)
      Parameters:
      array - backing the collection
      populatedSizeSupplier - for when the caller has a more efficient way of knowing the populated size of the array
  • Method Details