Class LidVid

java.lang.Object
gov.nasa.pds.tools.util.LidVid

public class LidVid
extends Object
Utility class to handle file(s) pruning of a given list related to logical identifier plus version (lidvid).
  • Constructor Details

    • LidVid

      public LidVid()
  • Method Details

    • getLatestVersion

      public static String getLatestVersion​(List<String> vidsList)
      Find the latest version of lidvid(s).
      Parameters:
      vidsList - a list of string of lidvid(s).
      Returns:
      a string containing the latest version.
    • reduceToLatestTargetOnly

      public static List<Target> reduceToLatestTargetOnly​(List<Target> children)
      Reduce a list of target to only the one with the latest version.
      Parameters:
      children - a list of Target(s). * @return a list of target containing the latest version.