test_class.file: model/policies/src/test/java/org/eclipse/ditto/model/policies/PolicyIdTest.java
test_class.identifier: PolicyIdTest
test_case.body: @Test
      public void policyIdOfPolicyIdReturnsSameInstance() {
          final PolicyId policyIdOne = PolicyId.of("namespace", "name");
          final PolicyId policyIdTwo = PolicyId.of(policyIdOne);
  
          assertThat((CharSequence) policyIdOne).isSameAs(policyIdTwo);
      }
test_case.class_method_signature: PolicyIdTest.policyIdOfPolicyIdReturnsSameInstance()
test_case.full_signature: @Test public void policyIdOfPolicyIdReturnsSameInstance()
test_case.identifier: policyIdOfPolicyIdReturnsSameInstance
test_case.invocations: of of isSameAs assertThat
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void policyIdOfPolicyIdReturnsSameInstance()
focal_class.declarator: DUMMY_ID = PolicyId.of(DefaultNamespacedEntityId.dummy())
focal_class.modifier: private static final
focal_class.original_string: private static final PolicyId DUMMY_ID = PolicyId.of(DefaultNamespacedEntityId.dummy());
focal_class.type: PolicyId
focal_class.var_name: DUMMY_ID
focal_class.declarator: entityId
focal_class.modifier: private final
focal_class.original_string: private final NamespacedEntityId entityId;
focal_class.type: NamespacedEntityId
focal_class.var_name: entityId
focal_class.file: model/policies/src/main/java/org/eclipse/ditto/model/policies/PolicyId.java
focal_class.identifier: PolicyId
focal_class.interfaces: implements NamespacedEntityId
focal_class.class_method_signature: PolicyId.PolicyId(final NamespacedEntityId entityId)
focal_class.full_signature: private  PolicyId(final NamespacedEntityId entityId)
focal_class.identifier: PolicyId
focal_class.modifiers: private
focal_class.parameters: (final NamespacedEntityId entityId)
focal_class.signature:  PolicyId(final NamespacedEntityId entityId)
focal_class.class_method_signature: PolicyId.of(final CharSequence policyId)
focal_class.full_signature: public static PolicyId of(final CharSequence policyId)
focal_class.identifier: of
focal_class.modifiers: public static
focal_class.parameters: (final CharSequence policyId)
focal_class.return: PolicyId
focal_class.signature: PolicyId of(final CharSequence policyId)
focal_class.class_method_signature: PolicyId.of(final PolicyId policyId)
focal_class.full_signature: public static PolicyId of(final PolicyId policyId)
focal_class.identifier: of
focal_class.modifiers: public static
focal_class.parameters: (final PolicyId policyId)
focal_class.return: PolicyId
focal_class.signature: PolicyId of(final PolicyId policyId)
focal_class.class_method_signature: PolicyId.of(final String namespace, final String policyName)
focal_class.full_signature: public static PolicyId of(final String namespace, final String policyName)
focal_class.identifier: of
focal_class.modifiers: public static
focal_class.parameters: (final String namespace, final String policyName)
focal_class.return: PolicyId
focal_class.signature: PolicyId of(final String namespace, final String policyName)
focal_class.class_method_signature: PolicyId.inNamespaceWithRandomName(final String namespace)
focal_class.full_signature: public static PolicyId inNamespaceWithRandomName(final String namespace)
focal_class.identifier: inNamespaceWithRandomName
focal_class.modifiers: public static
focal_class.parameters: (final String namespace)
focal_class.return: PolicyId
focal_class.signature: PolicyId inNamespaceWithRandomName(final String namespace)
focal_class.class_method_signature: PolicyId.wrapInPolicyIdInvalidException(final Supplier<T> supplier)
focal_class.full_signature: private static T wrapInPolicyIdInvalidException(final Supplier<T> supplier)
focal_class.identifier: wrapInPolicyIdInvalidException
focal_class.modifiers: private static
focal_class.parameters: (final Supplier<T> supplier)
focal_class.return: T
focal_class.signature: T wrapInPolicyIdInvalidException(final Supplier<T> supplier)
focal_class.class_method_signature: PolicyId.dummy()
focal_class.full_signature: public static PolicyId dummy()
focal_class.identifier: dummy
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: PolicyId
focal_class.signature: PolicyId dummy()
focal_class.class_method_signature: PolicyId.getName()
focal_class.full_signature: @Override public String getName()
focal_class.identifier: getName
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getName()
focal_class.class_method_signature: PolicyId.getNamespace()
focal_class.full_signature: @Override public String getNamespace()
focal_class.identifier: getNamespace
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getNamespace()
focal_class.class_method_signature: PolicyId.equals(final Object o)
focal_class.full_signature: @Override public boolean equals(final Object o)
focal_class.identifier: equals
focal_class.modifiers: @Override public
focal_class.parameters: (final Object o)
focal_class.return: boolean
focal_class.signature: boolean equals(final Object o)
focal_class.class_method_signature: PolicyId.hashCode()
focal_class.full_signature: @Override public int hashCode()
focal_class.identifier: hashCode
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int hashCode()
focal_class.class_method_signature: PolicyId.toString()
focal_class.full_signature: @Override public String toString()
focal_class.identifier: toString
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String toString()
focal_class.class_method_signature: PolicyId.isDummy()
focal_class.full_signature: @Override public boolean isDummy()
focal_class.identifier: isDummy
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isDummy()
focal_method.body: public static PolicyId of(final CharSequence policyId) {
  
          if (policyId instanceof PolicyId) {
              return (PolicyId) policyId;
          }
  
          return wrapInPolicyIdInvalidException(() -> new PolicyId(DefaultNamespacedEntityId.of(policyId)));
      }
focal_method.class_method_signature: PolicyId.of(final CharSequence policyId)
focal_method.full_signature: public static PolicyId of(final CharSequence policyId)
focal_method.identifier: of
focal_method.invocations: wrapInPolicyIdInvalidException of
focal_method.modifiers: public static
focal_method.parameters: (final CharSequence policyId)
focal_method.return: PolicyId
focal_method.signature: PolicyId of(final CharSequence policyId)