Class UIPreferences

java.lang.Object
org.yamcs.studio.eventlog.UIPreferences

public class UIPreferences extends Object
  • Field Details

  • Constructor Details

    • UIPreferences

      public UIPreferences()
  • Method Details

    • stringToIntArray

      public static int[] stringToIntArray(String value, int cnt)
      Converts a persisted String separated with commas to an integer array
      Parameters:
      value - the String value
      cnt - number of entries in the returned array
      Returns:
      the preference values for the array, or null if the string cannot be parsed or doesn't have cnt elements, or any value is <= 0.
    • intArrayToString

      public static String intArrayToString(int[] data)
      Converts an integer array into a String separated by commas