uk.ac.starlink.util

## Class Bi<A,B>

- java.lang.Object
- - uk.ac.starlink.util.Bi<A,B>

-     public class Bi<A,B>
      extends java.lang.Object

  Aggregates two typed objects of different types. This utility class does not do anything clever.
  Since:
    18 Jul 2023
  See Also:
    `Pair`

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `Bi(A item1, B item2)` Constructor.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `equals(java.lang.Object o)`
    `A` | `getItem1()` Returns this object's first item.
    `B` | `getItem2()` Returns this object's second item.
    `int` | `hashCode()`
    `java.lang.String` | `toString()`

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

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

- - ### Constructor Detail

    - #### Bi

          public Bi(A item1,
                    B item2)

      Constructor.
      Parameters:
        `item1` - first item
        `item2` - second item

  - ### Method Detail

    - #### getItem1

          public A getItem1()

      Returns this object's first item.
      Returns:
        item

    - #### getItem2

          public B getItem2()

      Returns this object's second item.
      Returns:
        item

    - #### hashCode

          public int hashCode()

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

    - #### equals

          public boolean equals(java.lang.Object o)

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

    - #### toString

          public java.lang.String toString()

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