Class LifoSet<V>

java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractSet<V>
org.apache.ofbiz.base.util.collections.LifoSet<V>
All Implemented Interfaces:
Serializable, Iterable<V>, Collection<V>, Set<V>

public class LifoSet<V> extends AbstractSet<V> implements Serializable
LifoSet - Set interface wrapper around a LinkedList
See Also:
  • Constructor Details

    • LifoSet

      public LifoSet()
      Constructs a set containing the elements of the specified collection, in the order they are returned by the collection's iterator.
    • LifoSet

      public LifoSet(int capacity)
      Constructs a set containing the elements of the specified collection, in the order they are returned by the collection's iterator.
      Parameters:
      capacity - the collection whose elements are to be placed into this set.
  • Method Details