diff options
author | Dominik <dominik@dominikschuermann.de> | 2012-03-10 20:22:29 +0100 |
---|---|---|
committer | Dominik <dominik@dominikschuermann.de> | 2012-03-10 20:22:29 +0100 |
commit | 630780cae4683e8ba403b28da84f963221d80ee3 (patch) | |
tree | 74ee9eac3a4c5640451e88b29a1b3350ca538def /src/org/apg/CachedPassPhrase.java | |
parent | 3fd5a55516eace832d2d2300ebf7a2579ab9c6dc (diff) | |
download | open-keychain-630780cae4683e8ba403b28da84f963221d80ee3.tar.gz open-keychain-630780cae4683e8ba403b28da84f963221d80ee3.tar.bz2 open-keychain-630780cae4683e8ba403b28da84f963221d80ee3.zip |
new directory structure
Diffstat (limited to 'src/org/apg/CachedPassPhrase.java')
-rw-r--r-- | src/org/apg/CachedPassPhrase.java | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/src/org/apg/CachedPassPhrase.java b/src/org/apg/CachedPassPhrase.java deleted file mode 100644 index 2d67a300d..000000000 --- a/src/org/apg/CachedPassPhrase.java +++ /dev/null @@ -1,48 +0,0 @@ -package org.apg; - -public class CachedPassPhrase { - public final long timestamp; - public final String passPhrase; - - public CachedPassPhrase(long timestamp, String passPhrase) { - super(); - this.timestamp = timestamp; - this.passPhrase = passPhrase; - } - - @Override - public int hashCode() { - int hc1 = (int) (this.timestamp & 0xffffffff); - int hc2 = (this.passPhrase == null ? 0 : this.passPhrase.hashCode()); - return (hc1 + hc2) * hc2 + hc1; - } - - @Override - public boolean equals(Object other) { - if (!(other instanceof CachedPassPhrase)) { - return false; - } - - CachedPassPhrase o = (CachedPassPhrase) other; - if (timestamp != o.timestamp) { - return false; - } - - if (passPhrase != o.passPhrase) { - if (passPhrase == null || o.passPhrase == null) { - return false; - } - - if (!passPhrase.equals(o.passPhrase)) { - return false; - } - } - - return true; - } - - @Override - public String toString() { - return "(" + timestamp + ", *******)"; - } -} |