Class JreJsSet<V>

  • Type Parameters:
    V - the value type

    @Deprecated
    public class JreJsSet<V>
    extends JsSet<V>
    Deprecated.
    Should only be used for testing.
    JRE implementation of JsSet, should only be used for testing.
    Since:
    1.0
    Author:
    Vaadin Ltd
    • Constructor Detail

      • JreJsSet

        public JreJsSet()
        Deprecated.
        Creates a new empty JRE Set.
    • Method Detail

      • add

        public JsSet<V> add​(V value)
        Deprecated.
        Description copied from class: JsSet
        Adds a value to this set, overwriting any previous value if present.
        Overrides:
        add in class JsSet<V>
        Parameters:
        value - the value to add
        Returns:
        this set, for chaining.
      • has

        public boolean has​(V value)
        Deprecated.
        Description copied from class: JsSet
        Checks whether this set contains the given value.
        Overrides:
        has in class JsSet<V>
        Parameters:
        value - the value to check for
        Returns:
        true if the value is in the set; false otherwise
      • delete

        public boolean delete​(V value)
        Deprecated.
        Description copied from class: JsSet
        Removes the given value from the set.
        Overrides:
        delete in class JsSet<V>
        Parameters:
        value - the value to remove
        Returns:
        true if the map contained the value prior to calling this method; false otherwise
      • clear

        public void clear()
        Deprecated.
        Description copied from class: JsSet
        Removes all values from this set.
        Overrides:
        clear in class JsSet<V>
      • forEach

        public void forEach​(JsCollections.ForEachCallback<V> callback)
        Deprecated.
        Description copied from class: JsSet
        Invokes the provided callback for each value in this set.
        Overrides:
        forEach in class JsSet<V>
        Parameters:
        callback - the callback to invoke for each value
      • size

        public int size()
        Deprecated.
        Description copied from class: JsSet
        Gets the number of values in this set.
        Overrides:
        size in class JsSet<V>
        Returns:
        the value count