Rename JournalSegment.index()
[controller.git] / atomix-storage / src / main / java / io / atomix / storage / journal / JournalSegment.java
index 118d39b3d0870e467bc922ae36e368deb21cc2f9..9239f86d256eca2d0f481bfa5d59f376fb617cb4 100644 (file)
@@ -79,7 +79,7 @@ final class JournalSegment<E> implements AutoCloseable {
    *
    * @return The segment's starting index.
    */
-  long index() {
+  long firstIndex() {
     return descriptor.index();
   }
 
@@ -264,7 +264,7 @@ final class JournalSegment<E> implements AutoCloseable {
     return MoreObjects.toStringHelper(this)
         .add("id", descriptor.id())
         .add("version", descriptor.version())
-        .add("index", index())
+        .add("index", firstIndex())
         .toString();
   }
 }