test_class.file: model/base/src/test/java/org/eclipse/ditto/model/base/headers/entitytag/EntityTagBuilderTest.java
test_class.identifier: EntityTagBuilderTest
test_case.body: @Test
      public void buildForNull() {
          final Optional<EntityTag> builtETagValue = EntityTagBuilder.buildFromEntity(null);
  
          assertThat(builtETagValue).isNotPresent();
      }
test_case.class_method_signature: EntityTagBuilderTest.buildForNull()
test_case.full_signature: @Test public void buildForNull()
test_case.identifier: buildForNull
test_case.invocations: buildFromEntity isNotPresent assertThat
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void buildForNull()
focal_class.declarator: TOP_LEVEL_ENTITY_PREFIX = "rev:"
focal_class.modifier: private static final
focal_class.original_string: private static final String TOP_LEVEL_ENTITY_PREFIX = "rev:";
focal_class.type: String
focal_class.var_name: TOP_LEVEL_ENTITY_PREFIX
focal_class.declarator: SUB_RESOURCE_PREFIX = "hash:"
focal_class.modifier: private static final
focal_class.original_string: private static final String SUB_RESOURCE_PREFIX = "hash:";
focal_class.type: String
focal_class.var_name: SUB_RESOURCE_PREFIX
focal_class.file: model/base/src/main/java/org/eclipse/ditto/model/base/headers/entitytag/EntityTagBuilder.java
focal_class.identifier: EntityTagBuilder
focal_class.class_method_signature: EntityTagBuilder.EntityTagBuilder()
focal_class.full_signature: private  EntityTagBuilder()
focal_class.identifier: EntityTagBuilder
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.signature:  EntityTagBuilder()
focal_class.class_method_signature: EntityTagBuilder.buildFromEntity(@Nullable final Object entity)
focal_class.full_signature: static Optional<EntityTag> buildFromEntity(@Nullable final Object entity)
focal_class.identifier: buildFromEntity
focal_class.modifiers: static
focal_class.parameters: (@Nullable final Object entity)
focal_class.return: Optional<EntityTag>
focal_class.signature: Optional<EntityTag> buildFromEntity(@Nullable final Object entity)
focal_class.class_method_signature: EntityTagBuilder.buildForTopLevelEntity(final Entity<? extends Revision> topLevelEntity)
focal_class.full_signature: private static Optional<EntityTag> buildForTopLevelEntity(final Entity<? extends Revision> topLevelEntity)
focal_class.identifier: buildForTopLevelEntity
focal_class.modifiers: private static
focal_class.parameters: (final Entity<? extends Revision> topLevelEntity)
focal_class.return: Optional<EntityTag>
focal_class.signature: Optional<EntityTag> buildForTopLevelEntity(final Entity<? extends Revision> topLevelEntity)
focal_class.class_method_signature: EntityTagBuilder.buildForSubEntity(final Object object)
focal_class.full_signature: private static Optional<EntityTag> buildForSubEntity(final Object object)
focal_class.identifier: buildForSubEntity
focal_class.modifiers: private static
focal_class.parameters: (final Object object)
focal_class.return: Optional<EntityTag>
focal_class.signature: Optional<EntityTag> buildForSubEntity(final Object object)
focal_class.class_method_signature: EntityTagBuilder.enquote(final String stringToPutInQuotes)
focal_class.full_signature: private static String enquote(final String stringToPutInQuotes)
focal_class.identifier: enquote
focal_class.modifiers: private static
focal_class.parameters: (final String stringToPutInQuotes)
focal_class.return: String
focal_class.signature: String enquote(final String stringToPutInQuotes)
focal_method.body: static Optional<EntityTag> buildFromEntity(@Nullable final Object entity) {
          if (entity == null) {
              return Optional.empty();
          }
  
          if (entity instanceof Entity) {
              return buildForTopLevelEntity((Entity<? extends Revision>) entity);
          } else {
              return buildForSubEntity(entity);
          }
      }
focal_method.class_method_signature: EntityTagBuilder.buildFromEntity(@Nullable final Object entity)
focal_method.full_signature: static Optional<EntityTag> buildFromEntity(@Nullable final Object entity)
focal_method.identifier: buildFromEntity
focal_method.invocations: empty buildForTopLevelEntity buildForSubEntity
focal_method.modifiers: static
focal_method.parameters: (@Nullable final Object entity)
focal_method.return: Optional<EntityTag>
focal_method.signature: Optional<EntityTag> buildFromEntity(@Nullable final Object entity)