Interface Versioned<T>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A container for a model instance and a version. Can be used with the
ModeledFramework.versioned()
APIs-
Method Summary
-
Method Details
-
model
T model()Returns the contained model- Returns:
- model
-
version
default int version()Returns the version of the model when it was read- Returns:
- version
-
from
Return a new Versioned wrapper for the given model and version- Parameters:
model
- modelversion
- version- Returns:
- new Versioned wrapper
-