test_class.declarator: JSON_ALL_FIELDS_V2 = JsonFactory.newObjectBuilder()
              .set(ThingSearchCommand.JsonFields.TYPE, CountThings.TYPE)
              .set(CountThings.JSON_FILTER, TestConstants.KNOWN_FILTER_STR)
              .set(CountThings.JSON_NAMESPACES, JsonFactory.newArrayBuilder()
                      .add(TestConstants.KNOWN_NAMESPACE)
                      .build())
              .build().toString()
test_class.modifier: private static final
test_class.original_string: private static final String JSON_ALL_FIELDS_V2 = JsonFactory.newObjectBuilder()
              .set(ThingSearchCommand.JsonFields.TYPE, CountThings.TYPE)
              .set(CountThings.JSON_FILTER, TestConstants.KNOWN_FILTER_STR)
              .set(CountThings.JSON_NAMESPACES, JsonFactory.newArrayBuilder()
                      .add(TestConstants.KNOWN_NAMESPACE)
                      .build())
              .build().toString();
test_class.type: String
test_class.var_name: JSON_ALL_FIELDS_V2
test_class.declarator: JSON_ALL_FIELDS_V1 = JsonFactory.newObjectBuilder()
              .set(ThingSearchCommand.JsonFields.ID, CountThings.NAME)
              .set(CountThings.JSON_FILTER, TestConstants.KNOWN_FILTER_STR)
              .set(CountThings.JSON_NAMESPACES, JsonFactory.newArrayBuilder()
                      .add(TestConstants.KNOWN_NAMESPACE)
                      .build())
              .build().toString()
test_class.modifier: private static final
test_class.original_string: private static final String JSON_ALL_FIELDS_V1 = JsonFactory.newObjectBuilder()
              .set(ThingSearchCommand.JsonFields.ID, CountThings.NAME)
              .set(CountThings.JSON_FILTER, TestConstants.KNOWN_FILTER_STR)
              .set(CountThings.JSON_NAMESPACES, JsonFactory.newArrayBuilder()
                      .add(TestConstants.KNOWN_NAMESPACE)
                      .build())
              .build().toString();
test_class.type: String
test_class.var_name: JSON_ALL_FIELDS_V1
test_class.declarator: JSON_MINIMAL_V2 = JsonFactory.newObjectBuilder()
              .set(ThingSearchCommand.JsonFields.TYPE, CountThings.TYPE)
              .build().toString()
test_class.modifier: private static final
test_class.original_string: private static final String JSON_MINIMAL_V2 = JsonFactory.newObjectBuilder()
              .set(ThingSearchCommand.JsonFields.TYPE, CountThings.TYPE)
              .build().toString();
test_class.type: String
test_class.var_name: JSON_MINIMAL_V2
test_class.declarator: JSON_MINIMAL_V1 = JsonFactory.newObjectBuilder()
              .set(ThingSearchCommand.JsonFields.ID, CountThings.NAME)
              .build().toString()
test_class.modifier: private static final
test_class.original_string: private static final String JSON_MINIMAL_V1 = JsonFactory.newObjectBuilder()
              .set(ThingSearchCommand.JsonFields.ID, CountThings.NAME)
              .build().toString();
test_class.type: String
test_class.var_name: JSON_MINIMAL_V1
test_class.file: signals/commands/thingsearch/src/test/java/org/eclipse/ditto/signals/commands/thingsearch/query/CountThingsTest.java
test_class.identifier: CountThingsTest
test_case.body: @Test
      public void toJsonWithAllFieldsSetV1() {
          final CountThings command = CountThings.of(TestConstants.KNOWN_FILTER_STR,
                  TestConstants.KNOWN_NAMESPACES_SET, DittoHeaders.empty());
  
          final String json = command.toJsonString(JsonSchemaVersion.V_1, FieldType.regularOrSpecial());
          assertThat(json).isEqualTo(JSON_ALL_FIELDS_V1);
      }
test_case.class_method_signature: CountThingsTest.toJsonWithAllFieldsSetV1()
test_case.full_signature: @Test public void toJsonWithAllFieldsSetV1()
test_case.identifier: toJsonWithAllFieldsSetV1
test_case.invocations: of empty toJsonString regularOrSpecial isEqualTo assertThat
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void toJsonWithAllFieldsSetV1()
focal_class.declarator: NAME = "countThings"
focal_class.modifier: public static final
focal_class.original_string: public static final String NAME = "countThings";
focal_class.type: String
focal_class.var_name: NAME
focal_class.declarator: TYPE = TYPE_PREFIX + NAME
focal_class.modifier: public static final
focal_class.original_string: public static final String TYPE = TYPE_PREFIX + NAME;
focal_class.type: String
focal_class.var_name: TYPE
focal_class.declarator: JSON_FILTER =
              JsonFactory.newStringFieldDefinition("filter", FieldType.REGULAR, JsonSchemaVersion.V_1,
                      JsonSchemaVersion.V_2)
focal_class.modifier: static final
focal_class.original_string: static final JsonFieldDefinition<String> JSON_FILTER =
              JsonFactory.newStringFieldDefinition("filter", FieldType.REGULAR, JsonSchemaVersion.V_1,
                      JsonSchemaVersion.V_2);
focal_class.type: JsonFieldDefinition<String>
focal_class.var_name: JSON_FILTER
focal_class.declarator: JSON_NAMESPACES =
              JsonFactory.newJsonArrayFieldDefinition("namespaces", FieldType.REGULAR, JsonSchemaVersion.V_1,
                      JsonSchemaVersion.V_2)
focal_class.modifier: static final
focal_class.original_string: static final JsonFieldDefinition<JsonArray> JSON_NAMESPACES =
              JsonFactory.newJsonArrayFieldDefinition("namespaces", FieldType.REGULAR, JsonSchemaVersion.V_1,
                      JsonSchemaVersion.V_2);
focal_class.type: JsonFieldDefinition<JsonArray>
focal_class.var_name: JSON_NAMESPACES
focal_class.declarator: filter
focal_class.modifier: @Nullable private final
focal_class.original_string: @Nullable private final String filter;
focal_class.type: String
focal_class.var_name: filter
focal_class.declarator: namespaces
focal_class.modifier: @Nullable private final
focal_class.original_string: @Nullable private final Set<String> namespaces;
focal_class.type: Set<String>
focal_class.var_name: namespaces
focal_class.file: signals/commands/thingsearch/src/main/java/org/eclipse/ditto/signals/commands/thingsearch/query/CountThings.java
focal_class.identifier: CountThings
focal_class.interfaces: implements ThingSearchQueryCommand<CountThings>
focal_class.class_method_signature: CountThings.CountThings(final DittoHeaders dittoHeaders, @Nullable final String filter,
              @Nullable final Collection<String> namespaces)
focal_class.full_signature: private  CountThings(final DittoHeaders dittoHeaders, @Nullable final String filter,
              @Nullable final Collection<String> namespaces)
focal_class.identifier: CountThings
focal_class.modifiers: private
focal_class.parameters: (final DittoHeaders dittoHeaders, @Nullable final String filter,
              @Nullable final Collection<String> namespaces)
focal_class.signature:  CountThings(final DittoHeaders dittoHeaders, @Nullable final String filter,
              @Nullable final Collection<String> namespaces)
focal_class.class_method_signature: CountThings.of(@Nullable final String filter, @Nullable final Set<String> namespaces,
              final DittoHeaders dittoHeaders)
focal_class.full_signature: public static CountThings of(@Nullable final String filter, @Nullable final Set<String> namespaces,
              final DittoHeaders dittoHeaders)
focal_class.identifier: of
focal_class.modifiers: public static
focal_class.parameters: (@Nullable final String filter, @Nullable final Set<String> namespaces,
              final DittoHeaders dittoHeaders)
focal_class.return: CountThings
focal_class.signature: CountThings of(@Nullable final String filter, @Nullable final Set<String> namespaces,
              final DittoHeaders dittoHeaders)
focal_class.class_method_signature: CountThings.of(final DittoHeaders dittoHeaders)
focal_class.full_signature: public static CountThings of(final DittoHeaders dittoHeaders)
focal_class.identifier: of
focal_class.modifiers: public static
focal_class.parameters: (final DittoHeaders dittoHeaders)
focal_class.return: CountThings
focal_class.signature: CountThings of(final DittoHeaders dittoHeaders)
focal_class.class_method_signature: CountThings.fromJson(final String jsonString, final DittoHeaders dittoHeaders)
focal_class.full_signature: public static CountThings fromJson(final String jsonString, final DittoHeaders dittoHeaders)
focal_class.identifier: fromJson
focal_class.modifiers: public static
focal_class.parameters: (final String jsonString, final DittoHeaders dittoHeaders)
focal_class.return: CountThings
focal_class.signature: CountThings fromJson(final String jsonString, final DittoHeaders dittoHeaders)
focal_class.class_method_signature: CountThings.fromJson(final JsonObject jsonObject, final DittoHeaders dittoHeaders)
focal_class.full_signature: public static CountThings fromJson(final JsonObject jsonObject, final DittoHeaders dittoHeaders)
focal_class.identifier: fromJson
focal_class.modifiers: public static
focal_class.parameters: (final JsonObject jsonObject, final DittoHeaders dittoHeaders)
focal_class.return: CountThings
focal_class.signature: CountThings fromJson(final JsonObject jsonObject, final DittoHeaders dittoHeaders)
focal_class.class_method_signature: CountThings.getFilter()
focal_class.full_signature: @Override public Optional<String> getFilter()
focal_class.identifier: getFilter
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Optional<String>
focal_class.signature: Optional<String> getFilter()
focal_class.class_method_signature: CountThings.getNamespaces()
focal_class.full_signature: @Override public Optional<Set<String>> getNamespaces()
focal_class.identifier: getNamespaces
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Optional<Set<String>>
focal_class.signature: Optional<Set<String>> getNamespaces()
focal_class.class_method_signature: CountThings.setNamespaces(@Nullable final Collection<String> namespaces)
focal_class.full_signature: @Override public CountThings setNamespaces(@Nullable final Collection<String> namespaces)
focal_class.identifier: setNamespaces
focal_class.modifiers: @Override public
focal_class.parameters: (@Nullable final Collection<String> namespaces)
focal_class.return: CountThings
focal_class.signature: CountThings setNamespaces(@Nullable final Collection<String> namespaces)
focal_class.class_method_signature: CountThings.appendPayload(final JsonObjectBuilder jsonObjectBuilder, final JsonSchemaVersion schemaVersion,
              final Predicate<JsonField> thePredicate)
focal_class.full_signature: @Override protected void appendPayload(final JsonObjectBuilder jsonObjectBuilder, final JsonSchemaVersion schemaVersion,
              final Predicate<JsonField> thePredicate)
focal_class.identifier: appendPayload
focal_class.modifiers: @Override protected
focal_class.parameters: (final JsonObjectBuilder jsonObjectBuilder, final JsonSchemaVersion schemaVersion,
              final Predicate<JsonField> thePredicate)
focal_class.return: void
focal_class.signature: void appendPayload(final JsonObjectBuilder jsonObjectBuilder, final JsonSchemaVersion schemaVersion,
              final Predicate<JsonField> thePredicate)
focal_class.class_method_signature: CountThings.setDittoHeaders(final DittoHeaders dittoHeaders)
focal_class.full_signature: @Override public CountThings setDittoHeaders(final DittoHeaders dittoHeaders)
focal_class.identifier: setDittoHeaders
focal_class.modifiers: @Override public
focal_class.parameters: (final DittoHeaders dittoHeaders)
focal_class.return: CountThings
focal_class.signature: CountThings setDittoHeaders(final DittoHeaders dittoHeaders)
focal_class.class_method_signature: CountThings.equals(@Nullable final Object o)
focal_class.full_signature: @Override public boolean equals(@Nullable final Object o)
focal_class.identifier: equals
focal_class.modifiers: @Override public
focal_class.parameters: (@Nullable final Object o)
focal_class.return: boolean
focal_class.signature: boolean equals(@Nullable final Object o)
focal_class.class_method_signature: CountThings.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: CountThings.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.superclass: extends AbstractCommand<CountThings>
focal_method.body: public static CountThings of(@Nullable final String filter, @Nullable final Set<String> namespaces,
              final DittoHeaders dittoHeaders) {
  
          return new CountThings(dittoHeaders, filter, namespaces);
      }
focal_method.class_method_signature: CountThings.of(@Nullable final String filter, @Nullable final Set<String> namespaces,
              final DittoHeaders dittoHeaders)
focal_method.full_signature: public static CountThings of(@Nullable final String filter, @Nullable final Set<String> namespaces,
              final DittoHeaders dittoHeaders)
focal_method.identifier: of
focal_method.modifiers: public static
focal_method.parameters: (@Nullable final String filter, @Nullable final Set<String> namespaces,
              final DittoHeaders dittoHeaders)
focal_method.return: CountThings
focal_method.signature: CountThings of(@Nullable final String filter, @Nullable final Set<String> namespaces,
              final DittoHeaders dittoHeaders)