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
All Methods Static Methods Concrete Methods Modifier and Type Method Description static HashMap<String,String>
getLatestVersion(HashMap<String,ArrayList<String>> lidvidsMap)
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.
-
-
-
Method Detail
-
getLatestVersion
public static HashMap<String,String> getLatestVersion(HashMap<String,ArrayList<String>> lidvidsMap)
Find the latest version of lidvid(s).- Parameters:
lidvidsMap
- a HashMap of logical identifier and a list of all versions.- Returns:
- a HashMap containing a map of each logical identifier and its latest version.
-
-