org.openjdk.jmh.util

Interface Multiset<T>

  • Type Parameters:
    T - element type
    All Known Implementing Classes:
    HashMultiset, TreeMultiset


    public interface Multiset<T>
    Basic Multiset. (Transitional interface)
    • Method Summary

      Methods 
      Modifier and TypeMethod and Description
      voidadd(T element)
      Add the element to the multiset
      voidadd(T element, long count)
      Add the element to the multiset
      longcount(T element)
      Count the elements in multiset
      booleanisEmpty()
      Answers if Multiset is empty
      Collection<T>keys()
      Answers the collection of keys
      longsize()
      Answers the size of multiset.
    • Method Detail

      • add

        void add(T element)
        Add the element to the multiset
        Parameters:
        element - element to add
      • add

        void add(T element,       long count)
        Add the element to the multiset
        Parameters:
        element - element to add
        count - number of elements to add
      • count

        long count(T element)
        Count the elements in multiset
        Parameters:
        element - element
        Returns:
        number of matching elements in the set; zero, if no elements
      • isEmpty

        boolean isEmpty()
        Answers if Multiset is empty
        Returns:
        true, if set is empty
      • size

        long size()
        Answers the size of multiset. Equivalent to number of elements, counting duplications.
        Returns:
        number of elements
      • keys

        Collection<T> keys()
        Answers the collection of keys
        Returns:
        the collections of keys

Copyright © 2012-2015 Oracle. All Rights Reserved.



NOTHING
NOTHING
Add the Maven Dependecy to your project: maven dependecy for com.amazonaws : aws-java-sdk : 1.3.14