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

Interface MapListBuilder<K,V>

  • All Known Subinterfaces:
    UnorderedMapListBuilder<K,V>
    public interface MapListBuilder<K,V>
    Build an immutable map from keys of type K to immutable lists 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 at the end of the list associated with the specified key.
      void add(K key, V value)
      Add an element at the end of the list 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(K key, IList<V> values)
      Add elements at the end of the list associated with the specified key.
      void addAll(K key, IList<V> values)
      Add elements at the end of the list 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 values associated with the specified key.
      int getValueCount(K key)
      Return the number of 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 IList<V> getValues(K key)
      Return the values currently associated with the specified key.
      IList<V> getValues(K key)
      Return the values currently associated with the specified key.
      Parameters:
      key - The key.
      Returns:
      an immutable list 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,IList<V>> value()
      Return a map containing the keys bound to lists of values.
      IMap<K,IList<V>> value()
      Return a map containing the keys bound to lists of values.