com.hazelcast.util.collection

## Class ComposedKeyMap<K1,K2,V>

- java.lang.Object
- - com.hazelcast.util.collection.ComposedKeyMap<K1,K2,V>

- Type Parameters:
    `K1` -
    `K2` -
    `V` -

      public class ComposedKeyMap<K1,K2,V>
      extends Object

  Map with a composed key. It's not thread safe and it does not allow nulls. It's biased towards use-cases where you have a smaller set of first keys. Alternative implementation could avoid map nesting and wrap keys inside a `ComposedKey` object.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ComposedKeyMap()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `V` | `get(K1 key1, K2 key2)`
    `V` | `put(K1 key1, K2 key2, V value)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### ComposedKeyMap

          public ComposedKeyMap()

  - ### Method Detail

    - #### put

          public V put(K1 key1,
                       K2 key2,
                       V value)

    - #### get

          public V get(K1 key1,
                       K2 key2)

Copyright © 2019. All rights reserved.