Class MultisetExpression<E>

    • Constructor Detail

      • MultisetExpression

        public MultisetExpression()
    • Method Detail

      • add

        public boolean add​(E element)
        Specified by:
        add in interface java.util.Collection<E>
        Specified by:
        add in interface Multiset<E>
      • add

        public int add​(E element,
                       int occurrences)
        Specified by:
        add in interface Multiset<E>
      • addAll

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

        public javafx.beans.binding.StringBinding asString()
        Creates a StringBinding that holds the value of the MultisetExpression turned into a String. If the value of this SetMultimapExpression changes, the value of the StringBinding will be updated automatically.
        Returns:
        A new StringBinding.
      • clear

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

        public boolean contains​(java.lang.Object element)
        Specified by:
        contains in interface java.util.Collection<E>
        Specified by:
        contains in interface Multiset<E>
      • containsAll

        public boolean containsAll​(java.util.Collection<?> elements)
        Specified by:
        containsAll in interface java.util.Collection<E>
        Specified by:
        containsAll in interface Multiset<E>
      • count

        public int count​(java.lang.Object element)
        Specified by:
        count in interface Multiset<E>
      • elementSet

        public java.util.Set<E> elementSet()
        Specified by:
        elementSet in interface Multiset<E>
      • emptyProperty

        public abstract javafx.beans.property.ReadOnlyBooleanProperty emptyProperty()
        A boolean property that reflects whether the Multiset is empty.
        Returns:
        A read-only property.
      • getValue

        public ObservableMultiset<E> getValue()
        Specified by:
        getValue in interface javafx.beans.value.ObservableValue<E>
      • isEmpty

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

        public javafx.beans.binding.BooleanBinding isNotNull()
        Creates a new BooleanBinding that indicates if the wrapped ObservableMultiset is not null.
        Returns:
        A new BooleanBinding.
      • isNull

        public javafx.beans.binding.BooleanBinding isNull()
        Creates a new BooleanBinding that indicates if the wrapped ObservableMultiset is null.
        Returns:
        A new BooleanBinding.
      • 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 Multiset<E>
      • remove

        public boolean remove​(java.lang.Object element)
        Specified by:
        remove in interface java.util.Collection<E>
        Specified by:
        remove in interface Multiset<E>
      • remove

        public int remove​(java.lang.Object element,
                          int occurrences)
        Specified by:
        remove in interface Multiset<E>
      • removeAll

        public boolean removeAll​(java.util.Collection<?> c)
        Specified by:
        removeAll in interface java.util.Collection<E>
        Specified by:
        removeAll in interface Multiset<E>
      • retainAll

        public boolean retainAll​(java.util.Collection<?> c)
        Specified by:
        retainAll in interface java.util.Collection<E>
        Specified by:
        retainAll in interface Multiset<E>
      • setCount

        public int setCount​(E element,
                            int count)
        Specified by:
        setCount in interface Multiset<E>
      • setCount

        public boolean setCount​(E element,
                                int oldCount,
                                int newCount)
        Specified by:
        setCount in interface Multiset<E>
      • size

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

        public abstract javafx.beans.property.ReadOnlyIntegerProperty sizeProperty()
        An integer property that represents the size of the Multiset.
        Returns:
        A read-only property.
      • toArray

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

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