docs: update object pool

This commit is contained in:
Ilkka Seppälä committed 2024-05-26 21:24:51 +03:00
1 parent 6f46fbb208
commit 5e133822ad
2 files changed
+51 -42

No files matched your search

@@ -25,6 +25,7 @@
package com.iluwatar.object.pool;
import java.util.concurrent.atomic.AtomicInteger;
import lombok.Getter;
import lombok.extern.slf4j.Slf4j;
/**
@@ -35,6 +36,7 @@ public class Oliphaunt {
private static final AtomicInteger counter = new AtomicInteger(0);
@Getter
private final int id;
/**
@@ -49,10 +51,6 @@ public class Oliphaunt {
}
}
public int getId() {
return id;
}
@Override
public String toString() {
return String.format("Oliphaunt id=%d", id);