private boolean somethingNew(NearbyPlayer nearbyPlayer) { if (lastNotification != null) { if (lastNotification.equals(nearbyPlayer)) { if (lastNotification.getLocation().equals(nearbyPlayer.getLocation())) { return false; } } } return true; }