test_class.declarator: KNOWN_PATH = JsonPointer.empty()
test_class.modifier: private static final
test_class.original_string: private static final JsonPointer KNOWN_PATH = JsonPointer.empty();
test_class.type: JsonPointer
test_class.var_name: KNOWN_PATH
test_class.declarator: KNOWN_VALUE = JsonValue.of("foo")
test_class.modifier: private static final
test_class.original_string: private static final JsonValue KNOWN_VALUE = JsonValue.of("foo");
test_class.type: JsonValue
test_class.var_name: KNOWN_VALUE
test_class.declarator: KNOWN_STATUS = HttpStatusCode.OK
test_class.modifier: private static final
test_class.original_string: private static final HttpStatusCode KNOWN_STATUS = HttpStatusCode.OK;
test_class.type: HttpStatusCode
test_class.var_name: KNOWN_STATUS
test_class.declarator: KNOWN_REVISION = 1337
test_class.modifier: private static final
test_class.original_string: private static final long KNOWN_REVISION = 1337;
test_class.type: long
test_class.var_name: KNOWN_REVISION
test_class.declarator: KNOWN_TIMESTAMP = Instant.now()
test_class.modifier: private static final
test_class.original_string: private static final Instant KNOWN_TIMESTAMP = Instant.now();
test_class.type: Instant
test_class.var_name: KNOWN_TIMESTAMP
test_class.declarator: KNOWN_FIELDS = JsonFieldSelector.newInstance("/foo")
test_class.modifier: private static final
test_class.original_string: private static final JsonFieldSelector KNOWN_FIELDS = JsonFieldSelector.newInstance("/foo");
test_class.type: JsonFieldSelector
test_class.var_name: KNOWN_FIELDS
test_class.declarator: knownExtra
test_class.modifier: private static
test_class.original_string: private static JsonObject knownExtra;
test_class.type: JsonObject
test_class.var_name: knownExtra
test_class.declarator: knownJsonRepresentation
test_class.modifier: private static
test_class.original_string: private static JsonObject knownJsonRepresentation;
test_class.type: JsonObject
test_class.var_name: knownJsonRepresentation
test_class.declarator: knownPayload
test_class.modifier: private static
test_class.original_string: private static ImmutablePayload knownPayload;
test_class.type: ImmutablePayload
test_class.var_name: knownPayload
test_class.file: protocol-adapter/src/test/java/org/eclipse/ditto/protocoladapter/ImmutablePayloadTest.java
test_class.identifier: ImmutablePayloadTest
test_case.body: @Test
      public void toJsonWorksAsExpected() {
          assertThat(knownPayload.toJson()).isEqualTo(knownJsonRepresentation);
      }
test_case.class_method_signature: ImmutablePayloadTest.toJsonWorksAsExpected()
test_case.full_signature: @Test public void toJsonWorksAsExpected()
test_case.identifier: toJsonWorksAsExpected
test_case.invocations: isEqualTo assertThat toJson
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void toJsonWorksAsExpected()
focal_class.declarator: path
focal_class.modifier: private final
focal_class.original_string: private final MessagePath path;
focal_class.type: MessagePath
focal_class.var_name: path
focal_class.declarator: value
focal_class.modifier: @Nullable private final
focal_class.original_string: @Nullable private final JsonValue value;
focal_class.type: JsonValue
focal_class.var_name: value
focal_class.declarator: extra
focal_class.modifier: @Nullable private final
focal_class.original_string: @Nullable private final JsonObject extra;
focal_class.type: JsonObject
focal_class.var_name: extra
focal_class.declarator: status
focal_class.modifier: @Nullable private final
focal_class.original_string: @Nullable private final HttpStatusCode status;
focal_class.type: HttpStatusCode
focal_class.var_name: status
focal_class.declarator: revision
focal_class.modifier: @Nullable private final
focal_class.original_string: @Nullable private final Long revision;
focal_class.type: Long
focal_class.var_name: revision
focal_class.declarator: timestamp
focal_class.modifier: @Nullable private final
focal_class.original_string: @Nullable private final Instant timestamp;
focal_class.type: Instant
focal_class.var_name: timestamp
focal_class.declarator: metadata
focal_class.modifier: @Nullable private final
focal_class.original_string: @Nullable private final Metadata metadata;
focal_class.type: Metadata
focal_class.var_name: metadata
focal_class.declarator: fields
focal_class.modifier: @Nullable private final
focal_class.original_string: @Nullable private final JsonFieldSelector fields;
focal_class.type: JsonFieldSelector
focal_class.var_name: fields
focal_class.file: protocol-adapter/src/main/java/org/eclipse/ditto/protocoladapter/ImmutablePayload.java
focal_class.identifier: ImmutablePayload
focal_class.interfaces: implements Payload
focal_class.class_method_signature: ImmutablePayload.ImmutablePayload(final ImmutablePayloadBuilder builder)
focal_class.full_signature: private  ImmutablePayload(final ImmutablePayloadBuilder builder)
focal_class.identifier: ImmutablePayload
focal_class.modifiers: private
focal_class.parameters: (final ImmutablePayloadBuilder builder)
focal_class.signature:  ImmutablePayload(final ImmutablePayloadBuilder builder)
focal_class.class_method_signature: ImmutablePayload.getBuilder(@Nullable final JsonPointer path)
focal_class.full_signature: public static ImmutablePayloadBuilder getBuilder(@Nullable final JsonPointer path)
focal_class.identifier: getBuilder
focal_class.modifiers: public static
focal_class.parameters: (@Nullable final JsonPointer path)
focal_class.return: ImmutablePayloadBuilder
focal_class.signature: ImmutablePayloadBuilder getBuilder(@Nullable final JsonPointer path)
focal_class.class_method_signature: ImmutablePayload.fromJson(final JsonObject jsonObject)
focal_class.full_signature: public static ImmutablePayload fromJson(final JsonObject jsonObject)
focal_class.identifier: fromJson
focal_class.modifiers: public static
focal_class.parameters: (final JsonObject jsonObject)
focal_class.return: ImmutablePayload
focal_class.signature: ImmutablePayload fromJson(final JsonObject jsonObject)
focal_class.class_method_signature: ImmutablePayload.getPath()
focal_class.full_signature: @Override public MessagePath getPath()
focal_class.identifier: getPath
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: MessagePath
focal_class.signature: MessagePath getPath()
focal_class.class_method_signature: ImmutablePayload.getValue()
focal_class.full_signature: @Override public Optional<JsonValue> getValue()
focal_class.identifier: getValue
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Optional<JsonValue>
focal_class.signature: Optional<JsonValue> getValue()
focal_class.class_method_signature: ImmutablePayload.getExtra()
focal_class.full_signature: @Override public Optional<JsonObject> getExtra()
focal_class.identifier: getExtra
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Optional<JsonObject>
focal_class.signature: Optional<JsonObject> getExtra()
focal_class.class_method_signature: ImmutablePayload.getStatus()
focal_class.full_signature: @Override public Optional<HttpStatusCode> getStatus()
focal_class.identifier: getStatus
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Optional<HttpStatusCode>
focal_class.signature: Optional<HttpStatusCode> getStatus()
focal_class.class_method_signature: ImmutablePayload.getRevision()
focal_class.full_signature: @Override public Optional<Long> getRevision()
focal_class.identifier: getRevision
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Optional<Long>
focal_class.signature: Optional<Long> getRevision()
focal_class.class_method_signature: ImmutablePayload.getTimestamp()
focal_class.full_signature: @Override public Optional<Instant> getTimestamp()
focal_class.identifier: getTimestamp
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Optional<Instant>
focal_class.signature: Optional<Instant> getTimestamp()
focal_class.class_method_signature: ImmutablePayload.getMetadata()
focal_class.full_signature: @Override public Optional<Metadata> getMetadata()
focal_class.identifier: getMetadata
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Optional<Metadata>
focal_class.signature: Optional<Metadata> getMetadata()
focal_class.class_method_signature: ImmutablePayload.getFields()
focal_class.full_signature: @Override public Optional<JsonFieldSelector> getFields()
focal_class.identifier: getFields
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Optional<JsonFieldSelector>
focal_class.signature: Optional<JsonFieldSelector> getFields()
focal_class.class_method_signature: ImmutablePayload.toJson()
focal_class.full_signature: @Override public JsonObject toJson()
focal_class.identifier: toJson
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: JsonObject
focal_class.signature: JsonObject toJson()
focal_class.class_method_signature: ImmutablePayload.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: ImmutablePayload.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: ImmutablePayload.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 JsonObjectBuilder jsonObjectBuilder = JsonObject.newBuilder();
          jsonObjectBuilder.set(JsonFields.PATH, path.toString());
  
          if (null != value) {
              jsonObjectBuilder.set(JsonFields.VALUE, value);
          }
          if (null != extra) {
              jsonObjectBuilder.set(JsonFields.EXTRA, extra);
          }
          if (null != status) {
              jsonObjectBuilder.set(JsonFields.STATUS, status.toInt());
          }
          if (null != revision) {
              jsonObjectBuilder.set(JsonFields.REVISION, revision);
          }
          if (null != timestamp) {
              jsonObjectBuilder.set(JsonFields.TIMESTAMP, timestamp.toString());
          }
          if (null != metadata) {
              jsonObjectBuilder.set(JsonFields.METADATA, metadata.toJson());
          }
          if (null != fields) {
              jsonObjectBuilder.set(JsonFields.FIELDS, fields.toString());
          }
  
          return jsonObjectBuilder.build();
      }
focal_method.class_method_signature: ImmutablePayload.toJson()
focal_method.full_signature: @Override public JsonObject toJson()
focal_method.identifier: toJson
focal_method.invocations: newBuilder set toString set set set toInt set set toString set toJson set toString build
focal_method.modifiers: @Override public
focal_method.parameters: ()
focal_method.return: JsonObject
focal_method.signature: JsonObject toJson()