org.openjdk.jol.util
Class Multiset<T>

java.lang.Object
  extended by org.openjdk.jol.util.Multiset<T>
Type Parameters:
T - element type

public class Multiset<T>
extends Object

Naive HashMultiset.

Author:
Aleksey Shipilev

Constructor Summary
Multiset()
           
 
Method Summary
 void add(T t)
           
 void add(T key, int count)
           
 int count(T key)
           
 Collection<T> keys()
           
 long size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Multiset

public Multiset()
Method Detail

add

public void add(T t)

add

public void add(T key,
                int count)

count

public int count(T key)

keys

public Collection<T> keys()

size

public long size()


Copyright © 2013. All Rights Reserved.