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.int
Returns the estimated size of the object in bytes.default JDataVersionedWrapper
value()
Get the value.long
version()
Returns the version number of the object.
-
Method Details
-
value
Description copied from interface:Data
Get the value.- Specified by:
value
in 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
-