Class ToGoogleMultisetAdapter<E>

  • All Implemented Interfaces:
    com.google.common.collect.Multiset<E>, java.lang.Iterable<E>, java.util.Collection<E>

    public class ToGoogleMultisetAdapter<E>
    extends java.lang.Object
    implements com.google.common.collect.Multiset<E>
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface com.google.common.collect.Multiset

        com.google.common.collect.Multiset.Entry<E extends java.lang.Object>
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean add​(E e)  
      int add​(E e, int i)  
      boolean addAll​(java.util.Collection<? extends E> collection)  
      void clear()  
      boolean contains​(java.lang.Object o)  
      boolean containsAll​(java.util.Collection<?> collection)  
      int count​(java.lang.Object o)  
      java.util.Set<E> elementSet()  
      java.util.Set<com.google.common.collect.Multiset.Entry<E>> entrySet()  
      boolean equals​(java.lang.Object object)  
      int hashCode()  
      boolean isEmpty()  
      java.util.Iterator<E> iterator()  
      boolean remove​(java.lang.Object o)  
      int remove​(java.lang.Object o, int i)  
      boolean removeAll​(java.util.Collection<?> collection)  
      boolean retainAll​(java.util.Collection<?> collection)  
      int setCount​(E e, int i)  
      boolean setCount​(E e, int i, int i1)  
      int size()  
      java.lang.Object[] toArray()  
      <T> T[] toArray​(T[] ts)  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.util.Collection

        parallelStream, removeIf, spliterator, stream, toArray
      • Methods inherited from interface java.lang.Iterable

        forEach
    • Constructor Detail

      • ToGoogleMultisetAdapter

        public ToGoogleMultisetAdapter​(Multiset<E> mSet)
    • Method Detail

      • count

        public int count​(java.lang.Object o)
        Specified by:
        count in interface com.google.common.collect.Multiset<E>
      • add

        public int add​(E e,
                       int i)
        Specified by:
        add in interface com.google.common.collect.Multiset<E>
      • remove

        public int remove​(java.lang.Object o,
                          int i)
        Specified by:
        remove in interface com.google.common.collect.Multiset<E>
      • setCount

        public int setCount​(E e,
                            int i)
        Specified by:
        setCount in interface com.google.common.collect.Multiset<E>
      • setCount

        public boolean setCount​(E e,
                                int i,
                                int i1)
        Specified by:
        setCount in interface com.google.common.collect.Multiset<E>
      • elementSet

        public java.util.Set<E> elementSet()
        Specified by:
        elementSet in interface com.google.common.collect.Multiset<E>
      • entrySet

        public java.util.Set<com.google.common.collect.Multiset.Entry<E>> entrySet()
        Specified by:
        entrySet in interface com.google.common.collect.Multiset<E>
      • iterator

        public java.util.Iterator<E> iterator()
        Specified by:
        iterator in interface java.util.Collection<E>
        Specified by:
        iterator in interface java.lang.Iterable<E>
        Specified by:
        iterator in interface com.google.common.collect.Multiset<E>
      • toArray

        public java.lang.Object[] toArray()
        Specified by:
        toArray in interface java.util.Collection<E>
      • toArray

        public <T> T[] toArray​(T[] ts)
        Specified by:
        toArray in interface java.util.Collection<E>
      • size

        public int size()
        Specified by:
        size in interface java.util.Collection<E>
      • isEmpty

        public boolean isEmpty()
        Specified by:
        isEmpty in interface java.util.Collection<E>
      • contains

        public boolean contains​(java.lang.Object o)
        Specified by:
        contains in interface java.util.Collection<E>
        Specified by:
        contains in interface com.google.common.collect.Multiset<E>
      • containsAll

        public boolean containsAll​(java.util.Collection<?> collection)
        Specified by:
        containsAll in interface java.util.Collection<E>
        Specified by:
        containsAll in interface com.google.common.collect.Multiset<E>
      • addAll

        public boolean addAll​(java.util.Collection<? extends E> collection)
        Specified by:
        addAll in interface java.util.Collection<E>
      • add

        public boolean add​(E e)
        Specified by:
        add in interface java.util.Collection<E>
        Specified by:
        add in interface com.google.common.collect.Multiset<E>
      • remove

        public boolean remove​(java.lang.Object o)
        Specified by:
        remove in interface java.util.Collection<E>
        Specified by:
        remove in interface com.google.common.collect.Multiset<E>
      • removeAll

        public boolean removeAll​(java.util.Collection<?> collection)
        Specified by:
        removeAll in interface java.util.Collection<E>
        Specified by:
        removeAll in interface com.google.common.collect.Multiset<E>
      • retainAll

        public boolean retainAll​(java.util.Collection<?> collection)
        Specified by:
        retainAll in interface java.util.Collection<E>
        Specified by:
        retainAll in interface com.google.common.collect.Multiset<E>
      • clear

        public void clear()
        Specified by:
        clear in interface java.util.Collection<E>
      • equals

        public boolean equals​(java.lang.Object object)
        Specified by:
        equals in interface java.util.Collection<E>
        Specified by:
        equals in interface com.google.common.collect.Multiset<E>
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface java.util.Collection<E>
        Specified by:
        hashCode in interface com.google.common.collect.Multiset<E>
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Specified by:
        toString in interface com.google.common.collect.Multiset<E>
        Overrides:
        toString in class java.lang.Object