summaryrefslogtreecommitdiff
path: root/BJC-Utils2/src/main/java/bjc/utils
diff options
context:
space:
mode:
authorbculkin2442 <bjculkin@mix.wvu.edu>2017-03-11 05:00:39 -0500
committerbculkin2442 <bjculkin@mix.wvu.edu>2017-03-11 05:00:39 -0500
commit21490abbcc03f9bbd467a53d09dd5ab69c081edc (patch)
tree176195f04f7ec34e9775620f285250608b2fdb0f /BJC-Utils2/src/main/java/bjc/utils
parent3cc21e9d65ac146842f6a6331972d151b2a6dd64 (diff)
Work on a new data structure: The directory
A directory is a hierarchical map with easy access control.
Diffstat (limited to 'BJC-Utils2/src/main/java/bjc/utils')
-rw-r--r--BJC-Utils2/src/main/java/bjc/utils/esodata/TreeDict.java18
1 files changed, 18 insertions, 0 deletions
diff --git a/BJC-Utils2/src/main/java/bjc/utils/esodata/TreeDict.java b/BJC-Utils2/src/main/java/bjc/utils/esodata/TreeDict.java
new file mode 100644
index 0000000..231abbc
--- /dev/null
+++ b/BJC-Utils2/src/main/java/bjc/utils/esodata/TreeDict.java
@@ -0,0 +1,18 @@
+package bjc.utils.esodata;
+
+/**
+ * Represents a hierarchical map.
+ *
+ * What's useful about this is that you can hand sub-directories to people and
+ * be able to ensure that they can't write outside of it.
+ *
+ * @param K The key type of the map.
+ * @param V The value type of the map.
+ */
+public class TreeDict<K, V> {
+ private Map<K, TreeDict<K, V>> children;
+
+ private Map<K, V> data;
+
+ public T
+}