Class Domicile

All Implemented Interfaces:
Standstill

public class Domicile extends AbstractPersistable implements Standstill
  • Constructor Details

    • Domicile

      public Domicile()
    • Domicile

      public Domicile(long id)
    • Domicile

      public Domicile(long id, Location location)
  • Method Details

    • getLocation

      public Location getLocation()
      Specified by:
      getLocation in interface Standstill
      Returns:
      never null
    • setLocation

      public void setLocation(Location location)
    • getDistanceTo

      public long getDistanceTo(Standstill standstill)
      Specified by:
      getDistanceTo in interface Standstill
      Parameters:
      standstill - never null
      Returns:
      a positive number, the distance multiplied by 1000 to avoid floating point arithmetic rounding errors
    • toString

      public String toString()
      Overrides:
      toString in class AbstractPersistable