Class TimeSeriesVersions

java.lang.Object
com.powsybl.timeseries.TimeSeriesVersions

public final class TimeSeriesVersions extends Object
Author:
Geoffroy Jamgotchian <geoffroy.jamgotchian at rte-france.com>
  • 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