Package org.spongepowered.api.util
Interface Updater<C>
- Type Parameters:
- C- The type of object being updated
- All Known Subinterfaces:
- DataContentUpdater
public interface Updater<C>
An updater that will take a 
type and update it
 across different versions. Whether this is applicable to
 serialization or object management is not required.- 
Method Details- 
inputVersionint inputVersion()Gets the numericalversionthat thisUpdatercan accept.- Returns:
- The numerical input version
 
- 
outputVersionint outputVersion()The outputtedversionthat thisUpdaterwill output to. Note that it is possible multiple updaters are able to cross between different versions.- Returns:
- The numerical output version
 
- 
updateAttempts to update the content ofCas long as the content version itself has been abided by.- Parameters:
- content- The content to update
- Returns:
- The updated content
 
 
-