Class DoubleArrayList<A,B>

java.lang.Object
com.sk89q.worldedit.util.collection.DoubleArrayList<A,B>
All Implemented Interfaces:
Iterable<Map.Entry<A,B>>

public class DoubleArrayList<A,B> extends Object implements Iterable<Map.Entry<A,B>>
Double array lists to work like a Map, but not really.

The usefulness of this class is highly questionable.

  • Constructor Details

    • DoubleArrayList

      public DoubleArrayList(boolean isReversed)
      Construct the object.
      Parameters:
      isReversed - true if the list should be reversed
  • Method Details

    • put

      public void put(A a, B b)
      Add an item.
      Parameters:
      a - the first item
      b - the second item
    • size

      public int size()
      Get size.
      Returns:
      count of objects
    • clear

      public void clear()
      Clear the list.
    • iterator

      public Iterator<Map.Entry<A,B>> iterator(boolean reversed)
      Get an entry set.
      Returns:
      entry set
    • iterator

      public Iterator<Map.Entry<A,B>> iterator()
      Specified by:
      iterator in interface Iterable<A>