Package com.powsybl.timeseries
Class TimeSeriesVersions
java.lang.Object
com.powsybl.timeseries.TimeSeriesVersions
- Author:
- Geoffroy Jamgotchian <geoffroy.jamgotchian at rte-france.com>
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
check
(int version) Check if the version number is allowed.
-
Method Details
-
check
public static int check(int version) Check if the version number is allowed.All positive integers are allowed, including 0.
Every strictly negative integers are forbidden, except -1 (default version number for not-versioned TimeSeries).
- Parameters:
version
- version number- Returns:
- the version number if it is allowed, else an exception is thrown
-