Package org.apache.tapestry5.commons.util

# Class MultiKey

java.lang.Object
org.apache.tapestry5.commons.util.MultiKey

public final class MultiKey extends Object
Combines multiple values to form a single composite key. MultiKey can often be used as an alternative to nested maps.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `MultiKey(Object... values)`
  Creates a new instance from the provided values.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `boolean`
  `equals(Object obj)`
  `Object[]`
  `getValues()`
  Returns a copy of the values array.
  `int`
  `hashCode()`
  `String`
  `toString()`

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

  `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- ## Constructor Details

  - ### MultiKey

    public MultiKey(Object... values)
    Creates a new instance from the provided values. It is assumed that the values provided are good map keys themselves -- immutable, with proper implementations of equals() and hashCode().
    Parameters:
      `values` -

- ## Method Details

  - ### hashCode

    public int hashCode()
    Overrides:
      `hashCode` in class `Object`

  - ### equals

    public boolean equals(Object obj)
    Overrides:
      `equals` in class `Object`

  - ### toString

    public String toString()
    Overrides:
      `toString` in class `Object`

  - ### getValues

    public Object[] getValues()
    Returns a copy of the values array.
    Since:
      5.8.3