@FunctionalInterface public interface Versioned<T>
ModeledFramework.versioned()
APIsModifier and Type | Method and Description |
---|---|
static <T> Versioned<T> |
from(T model,
int version)
Return a new Versioned wrapper for the given model and version
|
T |
model()
Returns the contained model
|
default int |
version()
Returns the version of the model when it was read
|
T model()
default int version()
static <T> Versioned<T> from(T model, int version)
model
- modelversion
- versionCopyright © 2011–2023 The Apache Software Foundation. All rights reserved.