@Test public void compareToIdentifiesSameServerID() { DefaultPushServerInfo otherInfo = new DefaultPushServerInfo("serverId", "otherURL", "otherRegistrationURL", "otherDescription"); Assert.assertEquals(this.serverInfo.compareTo(otherInfo), 0); }
@Override public int compareTo(PushServerInfo other) { return getServerID().compareTo(other.getServerID()); }
DefaultPushServerInfo implements PushServerInfo { @Override public int compareTo(PushServerInfo other) { return getServerID().compareTo(other.getServerID()); } }
DefaultPushServerInfo implements PushServerInfo { @Override public int compareTo(PushServerInfo other) { return getServerID().compareTo(other.getServerID()); } DefaultPushServerInfo(String serverID, String serverURL, String serverRegistrationURL, String serverDescription); }
DefaultPushServerInfo implements PushServerInfo { @Override public int compareTo(PushServerInfo other) { return getServerID().compareTo(other.getServerID()); } DefaultPushServerInfo(String serverID, String serverURL, String serverRegistrationURL, String serverDescription); @Override String getServerID(); @Override String getServerURL(); @Override String getServerRegistrationURL(); @Override String getServerDescription(); @Override int compareTo(PushServerInfo other); }
DefaultPushServerInfo implements PushServerInfo { @Override public int compareTo(PushServerInfo other) { return getServerID().compareTo(other.getServerID()); } DefaultPushServerInfo(String serverID, String serverURL, String serverRegistrationURL, String serverDescription); @Override String getServerID(); @Override String getServerURL(); @Override String getServerRegistrationURL(); @Override String getServerDescription(); @Override int compareTo(PushServerInfo other);  }