Skip to content

Commit

Permalink
Add factory methods to timestamps.
Browse files Browse the repository at this point in the history
  • Loading branch information
kuujo committed Jun 22, 2017
1 parent 0b4d9a2 commit 8c19072
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions time/src/main/java/io/atomix/time/LogicalTimestamp.java
Expand Up @@ -35,8 +35,8 @@ public class LogicalTimestamp implements Timestamp {
* @param value the logical time for which to create a new logical timestamp * @param value the logical time for which to create a new logical timestamp
* @return the logical timestamp * @return the logical timestamp
*/ */
public static WallClockTimestamp of(long value) { public static LogicalTimestamp of(long value) {
return new WallClockTimestamp(value); return new LogicalTimestamp(value);
} }


private final long value; private final long value;
Expand Down

0 comments on commit 8c19072

Please sign in to comment.