Class JreJsSet<V>

java.lang.Object
com.vaadin.client.flow.collection.JsSet<V>
com.vaadin.client.flow.collection.jre.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 Summary

    Constructors
    Constructor
    Description
    Deprecated.
    Creates a new empty JRE Set.
  • Method Summary

    Modifier and Type
    Method
    Description
    add(V value)
    Deprecated.
    Adds a value to this set, overwriting any previous value if present.
    void
    Deprecated.
    Removes all values from this set.
    boolean
    delete(V value)
    Deprecated.
    Removes the given value from the set.
    void
    Deprecated.
    Invokes the provided callback for each value in this set.
    boolean
    has(V value)
    Deprecated.
    Checks whether this set contains the given value.
    int
    Deprecated.
    Gets the number of values in this set.

    Methods inherited from class com.vaadin.client.flow.collection.JsSet

    isEmpty

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • JreJsSet

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

    • 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