Package gov.nasa.pds.tools.util
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 Summary
Constructors Constructor Description LidVid()
-
Method Summary
Modifier and Type Method Description static String
getLatestVersion(List<String> vidsList)
Find the latest version of lidvid(s).static List<Target>
reduceToLatestTargetOnly(List<Target> children)
Reduce a list of target to only the one with the latest version.
-
Constructor Details
-
LidVid
public LidVid()
-
-
Method Details
-
getLatestVersion
Find the latest version of lidvid(s).- Parameters:
vidsList
- a list of string of lidvid(s).- Returns:
- a string containing the latest version.
-
reduceToLatestTargetOnly
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.
-