Objects: seal JDataVersionedWrapper

This commit is contained in:
2025-04-19 12:07:36 +02:00
parent 1c71b26ed8
commit f3e4d99fcb
2 changed files with 2 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
package com.usatiuk.objects;
public interface JDataVersionedWrapper {
public sealed interface JDataVersionedWrapper permits JDataVersionedWrapperLazy, JDataVersionedWrapperImpl {
JData data();
long version();

View File

@@ -2,7 +2,7 @@ package com.usatiuk.objects;
import java.util.function.Supplier;
public class JDataVersionedWrapperLazy implements JDataVersionedWrapper {
public final class JDataVersionedWrapperLazy implements JDataVersionedWrapper {
private JData _data;
private final long _version;
private final int _estimatedSize;