Package ghidra.program.model.symbol

# Class AddressLabelPair

java.lang.Object
ghidra.program.model.symbol.AddressLabelPair

All Implemented Interfaces:
  `Serializable`

public final class AddressLabelPair extends Object implements Serializable
Container for holding an address and label.

See Also:
  - Serialized Form

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `AddressLabelPair(Address addr, String label)`
  Creates a new `AddressLabelPair`.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `boolean`
  `equals(Object obj)`
  `Address`
  `getAddress()`
  Returns the address.
  `String`
  `getLabel()`
  Returns the label.

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

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

- ## Constructor Details

  - ### AddressLabelPair

    public AddressLabelPair(Address addr, String label)
    Creates a new `AddressLabelPair`.
    Parameters:
      `addr` - the address
      `label` - the label

- ## Method Details

  - ### getAddress

    public Address getAddress()
    Returns the address.

  - ### getLabel

    public String getLabel()
    Returns the label.

  - ### equals

    public boolean equals(Object obj)
    Overrides:
      `equals` in class `Object`
    See Also:
      - `Object.equals(java.lang.Object)`