com.ihr.xbrl.dts

## Class TwoContexts

- java.lang.Object
- - com.ihr.xbrl.dts.TwoContexts

-     public class TwoContexts
      extends java.lang.Object

  This is just a pair of two contexts. This class may be used for storing two contexts that are c-equal so it would be simpler for the API to work with the two contexts inside one single class and store them into a HashSet or other things like that.
  Author:
    Ignacio

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `TwoContexts(XBRLContext context1, XBRLContext context2)` Instantiates a new two contexts.

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `equals(java.lang.Object obj)`
    `XBRLContext` | `getContext1()` Gets the context1.
    `XBRLContext` | `getContext2()` Gets the context2.
    `int` | `hashCode()`

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

      `getClass, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### TwoContexts

          public TwoContexts(XBRLContext context1,
                     XBRLContext context2)

      Instantiates a new two contexts.
      Parameters:
        `context1` - the context1
        `context2` - the context2

  - ### Method Detail

    - #### getContext1

          public XBRLContext getContext1()

      Gets the context1.
      Returns:
        the context1

    - #### getContext2

          public XBRLContext getContext2()

      Gets the context2.
      Returns:
        the context2

    - #### hashCode

          public int hashCode()

      Overrides:
        `hashCode` in class `java.lang.Object`

    - #### equals

          public boolean equals(java.lang.Object obj)

      Overrides:
        `equals` in class `java.lang.Object`