Class UnitAddress<T extends IAddressableUnit>

java.lang.Object
com.pnfsoftware.jeb.core.units.UnitAddress<T>
Type Parameters:
T - target unit type

public class UnitAddress<T extends IAddressableUnit> extends Object
A couple (target unit, address), where the address is relative to the target unit.
  • Constructor Details

    • UnitAddress

      public UnitAddress(T unit, String address)
      Create a unit address.
      Parameters:
      unit - target unit
      address - address relative to the target unit
  • Method Details

    • getUnit

      public T getUnit()
      Retrieve the target unit.
      Returns:
      target unit
    • getAddress

      public String getAddress()
      Retrieve the address.
      Returns:
      address relative to the target unit
    • 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