@Override public boolean equals(Object obj) { if (obj == null) return false; if (obj == this) return true; if (!(obj instanceof IPDeviceAccessor)) return false; IPDeviceAccessor accessor = (IPDeviceAccessor) obj; return ipAddress.equals(accessor.ipAddress); }
public InetAddress getInetAddress() { return ipAddress.toInetAddress(); }
@Override public int hashCode() { return ipAddress.hashCode(); }