public int compareTo(Object o) { if (o instanceof UsmUserEntry) { return compareTo(new UsmUserKey((UsmUserEntry)o)); } UsmUserKey other = (UsmUserKey)o; int result = 0; if ((engineID != null) && (other.engineID != null)) { result = engineID.compareTo(other.engineID); } else if ((engineID != null) && (other.engineID == null)) { result = 1; } else if ((engineID == null) && (other.engineID != null)) { result = -1; } if (result == 0) { result = securityName.compareTo(other.securityName); } return result; } }
public int compareTo(Object o) { if (o instanceof UsmUserEntry) { return compareTo(new UsmUserKey((UsmUserEntry)o)); } UsmUserKey other = (UsmUserKey)o; int result = 0; if ((engineID != null) && (other.engineID != null)) { result = engineID.compareTo(other.engineID); } else if (engineID != null) { result = 1; } else if (other.engineID != null) { result = -1; } if (result == 0) { result = securityName.compareTo(other.securityName); } return result; } }
public int compareTo(Object o) { if (o instanceof UsmUserEntry) { return compareTo(new UsmUserKey((UsmUserEntry) o)); } UsmUserKey other = (UsmUserKey) o; int result = 0; if ((engineID != null) && (other.engineID != null)) { result = engineID.compareTo(other.engineID); } else if (engineID != null) { result = 1; } else if (other.engineID != null) { result = -1; } if (result == 0) { result = securityName.compareTo(other.securityName); } return result; } }
public boolean equals(Object o) { if ((o instanceof UsmUserEntry) || (o instanceof UsmUserKey)) { return (compareTo(o) == 0); } return false; }
public boolean equals(Object o) { if ((o instanceof UsmUserEntry) || (o instanceof UsmUserKey)) { return (compareTo(o) == 0); } return false; }
public boolean equals(Object o) { if ((o instanceof UsmUserEntry) || (o instanceof UsmUserKey)) { return (compareTo(o) == 0); } return false; }