Class Bag<E>

java.lang.Object
edu.umd.cs.findbugs.util.Bag<E>

public class Bag<E> extends Object
Simple implementation of a Bag
Author:
pugh
  • Constructor Details

    • Bag

      public Bag()
    • Bag

      public Bag(Map<E,Integer> map)
  • Method Details

    • add

      public boolean add(E e)
    • add

      public boolean add(E e, int count)
    • keySet

      public Set<E> keySet()
    • entrySet

      public Collection<Map.Entry<E,Integer>> entrySet()
    • getCount

      public int getCount(E e)