Package ganymede.util
Class PathPropertyMap
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.TreeMap<String,String>
-
- ganymede.util.PathPropertyMap
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Map<String,String>
,NavigableMap<String,String>
,SortedMap<String,String>
public class PathPropertyMap extends TreeMap<String,String>
Path to PropertyMap
.- Author:
- Allen D. Ball
- 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 PathPropertyMap()
Sole constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
shorten(File file)
Method to shorten aFile
path by substituting placeholder references from thePathPropertyMap
.String
shorten(String string)
Method to shorten aString
by substituting placeholder references for paths from thePathPropertyMap
.-
Methods inherited from class java.util.TreeMap
ceilingEntry, ceilingKey, clear, clone, comparator, containsKey, containsValue, descendingKeySet, descendingMap, entrySet, firstEntry, firstKey, floorEntry, floorKey, forEach, get, headMap, headMap, higherEntry, higherKey, keySet, lastEntry, lastKey, lowerEntry, lowerKey, navigableKeySet, pollFirstEntry, pollLastEntry, put, putAll, remove, replace, replace, replaceAll, size, subMap, subMap, tailMap, tailMap, values
-
Methods inherited from class java.util.AbstractMap
equals, hashCode, isEmpty, toString
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, equals, getOrDefault, hashCode, isEmpty, merge, putIfAbsent, remove
-
-
-
-
Constructor Detail
-
PathPropertyMap
public PathPropertyMap()
Sole constructor.
-
-
Method Detail
-
shorten
public String shorten(File file)
Method to shorten aFile
path by substituting placeholder references from thePathPropertyMap
.
-
-