File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
src/main/java/com/maxmind/db Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 1414 * <p>All underlying {@link java.nio.ByteBuffer}s are read-only to prevent
1515 * accidental modification of shared data.
1616 */
17- interface Buffer {
17+ sealed interface Buffer permits SingleBuffer , MultiBuffer {
1818 /**
1919 * Returns the total capacity of this buffer in bytes.
2020 *
Original file line number Diff line number Diff line change 2121 * <p>All underlying {@link ByteBuffer}s are read-only to prevent accidental
2222 * modification of shared data.
2323 */
24- class MultiBuffer implements Buffer {
24+ final class MultiBuffer implements Buffer {
2525
2626 /** Default maximum size per underlying chunk. */
2727 static final int DEFAULT_CHUNK_SIZE = Integer .MAX_VALUE - 8 ;
Original file line number Diff line number Diff line change 1616 * <p>The underlying {@link ByteBuffer} is read-only to prevent accidental
1717 * modification of shared data.
1818 */
19- class SingleBuffer implements Buffer {
19+ final class SingleBuffer implements Buffer {
2020
2121 private final ByteBuffer buffer ;
2222
You can’t perform that action at this time.
0 commit comments