Package edu.uiuc.ncsa.security.installer
Class Versions
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<String,VersionEntry>
-
- edu.uiuc.ncsa.security.installer.Versions
-
- All Implemented Interfaces:
Serializable,Cloneable,Map<String,VersionEntry>
public class Versions extends HashMap<String,VersionEntry>
Created by Jeff Gaynor
on 6/16/24 at 6:40 AM- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object,V extends Object>
-
-
Constructor Summary
Constructors Constructor Description Versions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VersionEntrygetLatestVE()This returns theVersionEntrythat the "latest" name points to.StringgetLatestVersionName()The name of the configuration that latest points to.StringgetLatestVersionResource()Gets the resource set as the latest version.voidput(VersionEntry ve)-
Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
-
-
-
Method Detail
-
put
public void put(VersionEntry ve)
-
getLatestVE
public VersionEntry getLatestVE()
This returns theVersionEntrythat the "latest" name points to.- Returns:
-
getLatestVersionResource
public String getLatestVersionResource()
Gets the resource set as the latest version. See comment ingetLatestVersionName().- Returns:
-
getLatestVersionName
public String getLatestVersionName()
The name of the configuration that latest points to. So e.g. latest has resource /foo and /foo has name "version 5.2".getLatestVersionResource()returns "/foo" andgetLatestVersionName()returns "version 5.2".- Returns:
-
-