Package
Class
Use
Tree
Deprecated
Index
All Classes
Help
Prev Class
Next Class
VCollections – Release 1
Interface org.violetlib.collections.MapSetBuilder
Inherited members: ShowHide
Deprecated: ShowHide
org.violetlib.collections

Interface MapSetBuilder<K,V>

  • public interface MapSetBuilder<K,V>
    Build an immutable map from keys of type K to immutable sets of values of type V. Null values are not supported.
    • Methods 
      Modifier and Type Method and Description
      Ordinary member indicator add Reveal DetailHide Detail
      abstract void add(K key, V value)
      Add an element to the set associated with the specified key.
      void add(K key, V value)
      Add an element to the set associated with the specified key.
      Parameters:
      key - The key.
      value - The value to be added.
      Ordinary member indicator addAll Reveal DetailHide Detail
      abstract void addAll(IMap<K,ISet<V>> values)
      Add elements to the set from the associated map.
      void addAll(IMap<K,ISet<V>> values)
      Add elements to the set from the associated map.
      Parameters:
      values - The values to be added.
      Ordinary member indicator addAll Reveal DetailHide Detail
      abstract void addAll(K key, ICollection<V> values)
      Add elements to the set associated with the specified key.
      void addAll(K key, ICollection<V> values)
      Add elements to the set associated with the specified key.
      Parameters:
      key - The key.
      values - The values to be added.
      Ordinary member indicator getValueCount Reveal DetailHide Detail
      abstract int getValueCount(K key)
      Return the number of distinct values associated with the specified key.
      int getValueCount(K key)
      Return the number of distinct values associated with the specified key.
      Parameters:
      key - The key.
      Returns:
      the number of values associated with key.
      Ordinary member indicator getValues Reveal DetailHide Detail
      abstract ISet<V> getValues(K key)
      Return the values currently associated with the specified key.
      ISet<V> getValues(K key)
      Return the values currently associated with the specified key.
      Parameters:
      key - The key.
      Returns:
      an immutable set that contains the values associated with the specified key.
      Ordinary member indicator keys Reveal DetailHide Detail
      abstract IList<K> keys()
      Return the keys that have associated values.
      IList<K> keys()
      Return the keys that have associated values.
      Ordinary member indicator size Reveal DetailHide Detail
      abstract int size()
      Return the number of keys with associated values.
      int size()
      Return the number of keys with associated values.
      Ordinary member indicator value Reveal DetailHide Detail
      abstract IMap<K,ISet<V>> value()
      Return a map containing the keys bound to sets of values.
      IMap<K,ISet<V>> value()
      Return a map containing the keys bound to sets of values.