Class LocalUnitPair


  • public class LocalUnitPair
    extends Object
    Utility class used to package a Local and a Unit together.
    • Constructor Detail

      • LocalUnitPair

        public LocalUnitPair​(Local local,
                             Unit unit)
        Constructs a LocalUnitPair from a Unit object and a Local object.
        Parameters:
        local - some Local
        unit - some Unit.
    • Method Detail

      • equals

        public boolean equals​(Object other)
        Two LocalUnitPairs are equal iff they hold the same Unit objects and the same Local objects within them.
        Overrides:
        equals in class Object
        Parameters:
        other - another LocalUnitPair
        Returns:
        true if other contains the same objects as this.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • getLocal

        public Local getLocal()
      • getUnit

        public Unit getUnit()