Package com.usatiuk.objects
Interface JDataVersionedWrapper
- All Superinterfaces:
Data<JDataVersionedWrapper>,MaybeTombstone<JDataVersionedWrapper>
- All Known Implementing Classes:
JDataVersionedWrapperImpl,JDataVersionedWrapperLazy
public sealed interface JDataVersionedWrapper
extends Data<JDataVersionedWrapper>
permits JDataVersionedWrapperLazy, JDataVersionedWrapperImpl
JDataVersionedWrapper is a wrapper for JData that contains its version number
(the id of the transaction that had changed it last)
-
Method Summary
Modifier and TypeMethodDescriptiondata()Returns the wrapped object.intReturns the estimated size of the object in bytes.default JDataVersionedWrappervalue()Get the value.longversion()Returns the version number of the object.
-
Method Details
-
value
Description copied from interface:DataGet the value.- Specified by:
valuein interfaceData<JDataVersionedWrapper>- Returns:
- the value
-
data
JData data()Returns the wrapped object.- Returns:
- the wrapped object
-
version
long version()Returns the version number of the object.- Returns:
- the version number of the object
-
estimateSize
int estimateSize()Returns the estimated size of the object in bytes.- Returns:
- the estimated size of the object in bytes
-