com.ihr.xbrl.om.table

## Class PackStringAndFragment

- java.lang.Object
- - com.ihr.xbrl.om.table.PackStringAndFragment

-     public class PackStringAndFragment
      extends java.lang.Object

  This class allows to pack an XMLFragment along with a string representation of that fragment that can be properly compared and hashed. The idea is to allow two XML fragments to match if they are s-equal but without the complexity of having to deal with complex calculations
  Author:
    Ignacio

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `PackStringAndFragment(XMLFragment fragment)` Instantiates a new pack string and fragment.

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `equals(java.lang.Object obj)`
    `XMLFragment` | `getFragment()` Gets the fragment.
    `int` | `hashCode()`
    `java.lang.String` | `toString()`

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

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

- - ### Constructor Detail

    - #### PackStringAndFragment

          public PackStringAndFragment(XMLFragment fragment)

      Instantiates a new pack string and fragment.
      Parameters:
        `fragment` - the fragment

  - ### Method Detail

    - #### getFragment

          public XMLFragment getFragment()

      Gets the fragment.
      Returns:
        the base

    - #### 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`

    - #### toString

          public java.lang.String toString()

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