long getLatestEdition();
/**
- * Sets the latest edition of this Sone. If the given latest edition is not
- * greater than the current latest edition, the latest edition of this Sone is
- * not changed.
- *
- * @param latestEdition
- * The latest edition of this Sone
- */
- void setLatestEdition(long latestEdition);
-
- /**
* Return the time of the last inserted update of this Sone.
*
* @return The time of the update (in milliseconds since Jan 1, 1970 UTC)
Client getClient();
/**
- * Sets the client used by this Sone.
- *
- * @param client
- * The client used by this Sone, or {@code null}
- * @return This Sone (for method chaining)
- */
- Sone setClient(Client client);
-
- /**
* Returns whether this Sone is known.
*
* @return {@code true} if this Sone is known, {@code false} otherwise
PostReplyBuilder newPostReplyBuilder(String postId) throws IllegalStateException;
+ Modifier modify();
+
+ interface Modifier {
+
+ Modifier setLatestEdition(long latestEdition);
+ Sone update();
+
+ }
+
}