Get types at startup
[nonrtric.git] / policy-agent / src / main / java / org / oransc / policyagent / repository / PolicyTypes.java
index 6cf8ff4..f686ee4 100644 (file)
@@ -43,4 +43,11 @@ public class PolicyTypes {
         types.put(type.name(), type);
     }
 
+    public boolean contains(PolicyType policyType) {
+        return types.containsKey(policyType.name());
+    }
+
+    public int size() {
+        return types.size();
+    }
 }