/** * Builder pattern method to return {@link OAuthParameters} after setting * timestamp to the current time. * * @return this parameters object. */ public OAuthParameters timestamp() { setTimestamp(); return this; }
/** * Builder pattern method to return {@link Parameters} after setting * timestamp. * * @param timestamp positive integer, typically number of seconds since epoch. * @return this parameters object. */ public OAuthParameters timestamp(String timestamp) { setTimestamp(timestamp); return this; }
/** * Builder pattern method to return {@link OAuthParameters} after setting * timestamp. * * @param timestamp positive integer, typically number of seconds since epoch. * @return this parameters object. */ public OAuthParameters timestamp(String timestamp) { setTimestamp(timestamp); return this; }
/** * Builder pattern method to return {@link Parameters} after setting * timestamp to the current time. * * @param timestamp positive integer, typically number of seconds since epoch. * @return this parameters object. */ public OAuthParameters timestamp() { setTimestamp(); return this; }
/** * Sets the timestamp to the current time as number of seconds since epoch. */ public void setTimestamp() { setTimestamp(new Long(System.currentTimeMillis() / 1000).toString()); }
/** * Sets the timestamp to the current time as number of seconds since epoch. */ public void setTimestamp() { setTimestamp(new Long(System.currentTimeMillis() / 1000).toString()); }