Class ConvertLegacyValuesUtils

java.lang.Object
kieker.tools.common.ConvertLegacyValuesUtils

public final class ConvertLegacyValuesUtils
extends java.lang.Object
This utility class is used to support gluing old code to new infrastructure.
Since:
1.15
Author:
Reiner Jung
  • Method Summary

    Modifier and Type Method Description
    static java.lang.String[] fileListToStringArray​(java.util.List<java.io.File> directories)
    JCommander and modern service infrastructure passes file properties as files, but old filters expect them as strings.
    static java.lang.String[] listToArray​(java.util.List<java.lang.String> list)
    Convert a list of strings into an array of strings.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • fileListToStringArray

      public static java.lang.String[] fileListToStringArray​(java.util.List<java.io.File> directories)
      JCommander and modern service infrastructure passes file properties as files, but old filters expect them as strings. This helper allows to convert file lists to string arrays.
      Parameters:
      directories - input directories
      Returns:
      string array containing all path names
    • listToArray

      public static java.lang.String[] listToArray​(java.util.List<java.lang.String> list)
      Convert a list of strings into an array of strings.
      Parameters:
      list - list of strings
      Returns:
      returns an array of strings