test_class.declarator: INSTANT = Instant.now()
test_class.modifier: private static final
test_class.original_string: private static final Instant INSTANT = Instant.now();
test_class.type: Instant
test_class.var_name: INSTANT
test_class.declarator: RESOURCE_STATUS = ImmutableResourceStatus.of(
              ResourceStatus.ResourceType.CLIENT, "client1", ConnectivityStatus.OPEN, null, "client " +
                      "connected", INSTANT)
test_class.modifier: private static final
test_class.original_string: private static final ResourceStatus RESOURCE_STATUS = ImmutableResourceStatus.of(
              ResourceStatus.ResourceType.CLIENT, "client1", ConnectivityStatus.OPEN, null, "client " +
                      "connected", INSTANT);
test_class.type: ResourceStatus
test_class.var_name: RESOURCE_STATUS
test_class.declarator: RESOURCE_STATUS_JSON =
              JsonObject
                      .newBuilder()
                      .set(ResourceStatus.JsonFields.TYPE, ResourceStatus.ResourceType.CLIENT.getName())
                      .set(ResourceStatus.JsonFields.CLIENT, "client1")
                      .set(ResourceStatus.JsonFields.STATUS, ConnectivityStatus.OPEN.getName())
                      .set(ResourceStatus.JsonFields.STATUS_DETAILS, "client connected")
                      .set(ResourceStatus.JsonFields.IN_STATE_SINCE, INSTANT.toString())
                      .build()
test_class.modifier: private static final
test_class.original_string: private static final JsonObject RESOURCE_STATUS_JSON =
              JsonObject
                      .newBuilder()
                      .set(ResourceStatus.JsonFields.TYPE, ResourceStatus.ResourceType.CLIENT.getName())
                      .set(ResourceStatus.JsonFields.CLIENT, "client1")
                      .set(ResourceStatus.JsonFields.STATUS, ConnectivityStatus.OPEN.getName())
                      .set(ResourceStatus.JsonFields.STATUS_DETAILS, "client connected")
                      .set(ResourceStatus.JsonFields.IN_STATE_SINCE, INSTANT.toString())
                      .build();
test_class.type: JsonObject
test_class.var_name: RESOURCE_STATUS_JSON
test_class.file: model/connectivity/src/test/java/org/eclipse/ditto/model/connectivity/ImmutableResourceStatusTest.java
test_class.identifier: ImmutableResourceStatusTest
test_case.body: @Test
      public void toJsonReturnsExpected() {
          final JsonObject actual = RESOURCE_STATUS.toJson();
          assertThat(actual).isEqualTo(RESOURCE_STATUS_JSON);
      }
test_case.class_method_signature: ImmutableResourceStatusTest.toJsonReturnsExpected()
test_case.full_signature: @Test public void toJsonReturnsExpected()
test_case.identifier: toJsonReturnsExpected
test_case.invocations: toJson isEqualTo assertThat
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void toJsonReturnsExpected()
focal_class.declarator: type
focal_class.modifier: private final
focal_class.original_string: private final ResourceType type;
focal_class.type: ResourceType
focal_class.var_name: type
focal_class.declarator: client
focal_class.modifier: private final
focal_class.original_string: private final String client;
focal_class.type: String
focal_class.var_name: client
focal_class.declarator: status
focal_class.modifier: private final
focal_class.original_string: private final ConnectivityStatus status;
focal_class.type: ConnectivityStatus
focal_class.var_name: status
focal_class.declarator: address
focal_class.modifier: @Nullable private final
focal_class.original_string: @Nullable private final String address;
focal_class.type: String
focal_class.var_name: address
focal_class.declarator: statusDetails
focal_class.modifier: @Nullable private final
focal_class.original_string: @Nullable private final String statusDetails;
focal_class.type: String
focal_class.var_name: statusDetails
focal_class.declarator: inStateSince
focal_class.modifier: @Nullable private final
focal_class.original_string: @Nullable private final Instant inStateSince;
focal_class.type: Instant
focal_class.var_name: inStateSince
focal_class.file: model/connectivity/src/main/java/org/eclipse/ditto/model/connectivity/ImmutableResourceStatus.java
focal_class.identifier: ImmutableResourceStatus
focal_class.interfaces: implements ResourceStatus
focal_class.class_method_signature: ImmutableResourceStatus.ImmutableResourceStatus(final ResourceType type, final String client, final ConnectivityStatus status,
              @Nullable final String address,
              @Nullable final String statusDetails,
              @Nullable final Instant inStateSince)
focal_class.full_signature: private  ImmutableResourceStatus(final ResourceType type, final String client, final ConnectivityStatus status,
              @Nullable final String address,
              @Nullable final String statusDetails,
              @Nullable final Instant inStateSince)
focal_class.identifier: ImmutableResourceStatus
focal_class.modifiers: private
focal_class.parameters: (final ResourceType type, final String client, final ConnectivityStatus status,
              @Nullable final String address,
              @Nullable final String statusDetails,
              @Nullable final Instant inStateSince)
focal_class.signature:  ImmutableResourceStatus(final ResourceType type, final String client, final ConnectivityStatus status,
              @Nullable final String address,
              @Nullable final String statusDetails,
              @Nullable final Instant inStateSince)
focal_class.class_method_signature: ImmutableResourceStatus.of(final ResourceType type, final String client,
              final ConnectivityStatus status,
              @Nullable final String address,
              @Nullable final String statusDetails,
              @Nullable final Instant inStateSince)
focal_class.full_signature: public static ImmutableResourceStatus of(final ResourceType type, final String client,
              final ConnectivityStatus status,
              @Nullable final String address,
              @Nullable final String statusDetails,
              @Nullable final Instant inStateSince)
focal_class.identifier: of
focal_class.modifiers: public static
focal_class.parameters: (final ResourceType type, final String client,
              final ConnectivityStatus status,
              @Nullable final String address,
              @Nullable final String statusDetails,
              @Nullable final Instant inStateSince)
focal_class.return: ImmutableResourceStatus
focal_class.signature: ImmutableResourceStatus of(final ResourceType type, final String client,
              final ConnectivityStatus status,
              @Nullable final String address,
              @Nullable final String statusDetails,
              @Nullable final Instant inStateSince)
focal_class.class_method_signature: ImmutableResourceStatus.of(final ResourceType type, final String client,
              final ConnectivityStatus status,
              @Nullable final String address,
              @Nullable final String statusDetails)
focal_class.full_signature: public static ImmutableResourceStatus of(final ResourceType type, final String client,
              final ConnectivityStatus status,
              @Nullable final String address,
              @Nullable final String statusDetails)
focal_class.identifier: of
focal_class.modifiers: public static
focal_class.parameters: (final ResourceType type, final String client,
              final ConnectivityStatus status,
              @Nullable final String address,
              @Nullable final String statusDetails)
focal_class.return: ImmutableResourceStatus
focal_class.signature: ImmutableResourceStatus of(final ResourceType type, final String client,
              final ConnectivityStatus status,
              @Nullable final String address,
              @Nullable final String statusDetails)
focal_class.class_method_signature: ImmutableResourceStatus.getResourceType()
focal_class.full_signature: @Override public ResourceType getResourceType()
focal_class.identifier: getResourceType
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: ResourceType
focal_class.signature: ResourceType getResourceType()
focal_class.class_method_signature: ImmutableResourceStatus.getClient()
focal_class.full_signature: @Override public String getClient()
focal_class.identifier: getClient
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getClient()
focal_class.class_method_signature: ImmutableResourceStatus.getAddress()
focal_class.full_signature: @Override public Optional<String> getAddress()
focal_class.identifier: getAddress
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Optional<String>
focal_class.signature: Optional<String> getAddress()
focal_class.class_method_signature: ImmutableResourceStatus.getStatus()
focal_class.full_signature: @Override public ConnectivityStatus getStatus()
focal_class.identifier: getStatus
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: ConnectivityStatus
focal_class.signature: ConnectivityStatus getStatus()
focal_class.class_method_signature: ImmutableResourceStatus.getStatusDetails()
focal_class.full_signature: @Override public Optional<String> getStatusDetails()
focal_class.identifier: getStatusDetails
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Optional<String>
focal_class.signature: Optional<String> getStatusDetails()
focal_class.class_method_signature: ImmutableResourceStatus.getInStateSince()
focal_class.full_signature: @Override public Optional<Instant> getInStateSince()
focal_class.identifier: getInStateSince
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Optional<Instant>
focal_class.signature: Optional<Instant> getInStateSince()
focal_class.class_method_signature: ImmutableResourceStatus.toJson(final JsonSchemaVersion schemaVersion, final Predicate<JsonField> thePredicate)
focal_class.full_signature: @Override public JsonObject toJson(final JsonSchemaVersion schemaVersion, final Predicate<JsonField> thePredicate)
focal_class.identifier: toJson
focal_class.modifiers: @Override public
focal_class.parameters: (final JsonSchemaVersion schemaVersion, final Predicate<JsonField> thePredicate)
focal_class.return: JsonObject
focal_class.signature: JsonObject toJson(final JsonSchemaVersion schemaVersion, final Predicate<JsonField> thePredicate)
focal_class.class_method_signature: ImmutableResourceStatus.fromJson(final JsonObject jsonObject)
focal_class.full_signature: public static ResourceStatus fromJson(final JsonObject jsonObject)
focal_class.identifier: fromJson
focal_class.modifiers: public static
focal_class.parameters: (final JsonObject jsonObject)
focal_class.return: ResourceStatus
focal_class.signature: ResourceStatus fromJson(final JsonObject jsonObject)
focal_class.class_method_signature: ImmutableResourceStatus.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: ImmutableResourceStatus.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: ImmutableResourceStatus.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_method.body: @Override
      public JsonObject toJson(final JsonSchemaVersion schemaVersion, final Predicate<JsonField> thePredicate) {
          final Predicate<JsonField> predicate = schemaVersion.and(thePredicate);
          final JsonObjectBuilder jsonObjectBuilder = JsonFactory.newObjectBuilder();
          jsonObjectBuilder.set(JsonFields.TYPE, type.getName(), predicate);
          jsonObjectBuilder.set(JsonFields.CLIENT, client, predicate);
          if (address != null) {
              jsonObjectBuilder.set(JsonFields.ADDRESS, address, predicate);
          }
          jsonObjectBuilder.set(JsonFields.SCHEMA_VERSION, schemaVersion.toInt(), predicate);
          jsonObjectBuilder.set(JsonFields.STATUS, status.getName(), predicate);
          if (statusDetails != null) {
              jsonObjectBuilder.set(JsonFields.STATUS_DETAILS, statusDetails, predicate);
          }
          if (inStateSince != null) {
              jsonObjectBuilder.set(JsonFields.IN_STATE_SINCE, inStateSince.toString(), predicate);
          }
          return jsonObjectBuilder.build();
      }
focal_method.class_method_signature: ImmutableResourceStatus.toJson(final JsonSchemaVersion schemaVersion, final Predicate<JsonField> thePredicate)
focal_method.full_signature: @Override public JsonObject toJson(final JsonSchemaVersion schemaVersion, final Predicate<JsonField> thePredicate)
focal_method.identifier: toJson
focal_method.invocations: and newObjectBuilder set getName set set set toInt set getName set set toString build
focal_method.modifiers: @Override public
focal_method.parameters: (final JsonSchemaVersion schemaVersion, final Predicate<JsonField> thePredicate)
focal_method.return: JsonObject
focal_method.signature: JsonObject toJson(final JsonSchemaVersion schemaVersion, final Predicate<JsonField> thePredicate)