public int compareTo(Address other) { if(other instanceof SiteMaster) { SiteMaster tmp=(SiteMaster)other; return Util.compare(get(SITE_NAME), tmp.get(SITE_NAME)); } return super.compareTo(other); }
public int compareTo(Address other) { if(other instanceof SiteMaster) { SiteMaster tmp=(SiteMaster)other; return Util.compare(get(SITE_NAME), tmp.get(SITE_NAME)); } return super.compareTo(other); }
public int compareTo(Address other) { if(other instanceof SiteMaster) { SiteMaster tmp=(SiteMaster)other; return Util.compare(get(SITE_NAME), tmp.get(SITE_NAME)); } return super.compareTo(other); }
@Override public int compareTo(Address other) { if (other instanceof SiteUUID) { int siteCompare = Util.compare(get(SITE_NAME), ((SiteUUID) other).get(SITE_NAME)); //compareTo will check the bits. return siteCompare == 0 ? super.compareTo(other) : siteCompare; } return super.compareTo(other); }
@Override public int compareTo(Address other) { if (other instanceof SiteUUID) { int siteCompare = Util.compare(get(SITE_NAME), ((SiteUUID) other).get(SITE_NAME)); //compareTo will check the bits. return siteCompare == 0 ? super.compareTo(other) : siteCompare; } return super.compareTo(other); }
@Override public int compareTo(Address other) { if (other instanceof SiteUUID) { int siteCompare = Util.compare(get(SITE_NAME), ((SiteUUID) other).get(SITE_NAME)); //compareTo will check the bits. return siteCompare == 0 ? super.compareTo(other) : siteCompare; } return super.compareTo(other); }