private static class SimpleOAuthValidator.UsedNonce extends java.lang.Object implements java.lang.Comparable<SimpleOAuthValidator.UsedNonce>
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
sortKey |
Constructor and Description |
---|
UsedNonce(long timestamp,
java.lang.String... nonceEtc)
Construct an object containing the given timestamp, nonce and other
parameters.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(SimpleOAuthValidator.UsedNonce that)
Determine the relative order of
this and
that , as specified by Comparable. |
boolean |
equals(java.lang.Object that)
Return true iff
this and that contain equal
timestamps, nonce etc., in the same order. |
(package private) long |
getTimestamp() |
int |
hashCode() |
java.lang.String |
toString() |
UsedNonce(long timestamp, java.lang.String... nonceEtc)
long getTimestamp()
public int compareTo(SimpleOAuthValidator.UsedNonce that)
this
and
that
, as specified by Comparable. The timestamp is most
significant; that is, if the timestamps are different, return 1 or
-1. If this
contains only a timestamp (with no nonce
etc.), return -1 or 0. The treatment of the nonce etc. is murky,
although 0 is returned only if they're all equal.compareTo
in interface java.lang.Comparable<SimpleOAuthValidator.UsedNonce>
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object that)
this
and that
contain equal
timestamps, nonce etc., in the same order.equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object