Package gov.nasa.pds.tools.util
Class LidVid
java.lang.Object
gov.nasa.pds.tools.util.LidVid
Utility class to handle file(s) pruning of a given list related to logical identifier plus
version (lidvid).
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetLatestVersion(HashMap<String, ArrayList<String>> lidvidsMap) Find the latest version of lidvid(s).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:
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.
-
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.
-