test_class.declarator: KNOWN_AUTH_SUBJECT = AuthorizationSubject.newInstance("antman")
test_class.modifier: private static final
test_class.original_string: private static final AuthorizationSubject KNOWN_AUTH_SUBJECT = AuthorizationSubject.newInstance("antman");
test_class.type: AuthorizationSubject
test_class.var_name: KNOWN_AUTH_SUBJECT
test_class.file: model/things/src/test/java/org/eclipse/ditto/model/things/ImmutableAclEntryTest.java
test_class.identifier: ImmutableAclEntryTest
test_case.body: @Test(expected = DittoJsonException.class)
      public void tryToCreateInstanceFromJsonObjectContainingSchemaVersionOnly() {
          final JsonObject jsonObject = JsonFactory.newObject("{\"__schemaVersion\":1}");
          ImmutableAclEntry.fromJson(jsonObject);
      }
test_case.class_method_signature: ImmutableAclEntryTest.tryToCreateInstanceFromJsonObjectContainingSchemaVersionOnly()
test_case.full_signature: @Test(expected = DittoJsonException.class) public void tryToCreateInstanceFromJsonObjectContainingSchemaVersionOnly()
test_case.identifier: tryToCreateInstanceFromJsonObjectContainingSchemaVersionOnly
test_case.invocations: newObject fromJson
test_case.modifiers: @Test(expected = DittoJsonException.class) public
test_case.parameters: ()
test_case.return: void
test_case.signature: void tryToCreateInstanceFromJsonObjectContainingSchemaVersionOnly()
focal_class.declarator: JSON_SCHEMA_VERSION =
              JsonFactory.newIntFieldDefinition(JsonSchemaVersion.getJsonKey(), FieldType.SPECIAL, FieldType.HIDDEN,
                      JsonSchemaVersion.V_1)
focal_class.modifier: private static final
focal_class.original_string: private static final JsonFieldDefinition<Integer> JSON_SCHEMA_VERSION =
              JsonFactory.newIntFieldDefinition(JsonSchemaVersion.getJsonKey(), FieldType.SPECIAL, FieldType.HIDDEN,
                      JsonSchemaVersion.V_1);
focal_class.type: JsonFieldDefinition<Integer>
focal_class.var_name: JSON_SCHEMA_VERSION
focal_class.declarator: authSubject
focal_class.modifier: private final
focal_class.original_string: private final AuthorizationSubject authSubject;
focal_class.type: AuthorizationSubject
focal_class.var_name: authSubject
focal_class.declarator: permissions
focal_class.modifier: private final
focal_class.original_string: private final Permissions permissions;
focal_class.type: Permissions
focal_class.var_name: permissions
focal_class.file: model/things/src/main/java/org/eclipse/ditto/model/things/ImmutableAclEntry.java
focal_class.identifier: ImmutableAclEntry
focal_class.interfaces: implements AclEntry
focal_class.class_method_signature: ImmutableAclEntry.ImmutableAclEntry(final AuthorizationSubject theAuthSubject, final Set<Permission> thePermissions)
focal_class.full_signature: private  ImmutableAclEntry(final AuthorizationSubject theAuthSubject, final Set<Permission> thePermissions)
focal_class.identifier: ImmutableAclEntry
focal_class.modifiers: private
focal_class.parameters: (final AuthorizationSubject theAuthSubject, final Set<Permission> thePermissions)
focal_class.signature:  ImmutableAclEntry(final AuthorizationSubject theAuthSubject, final Set<Permission> thePermissions)
focal_class.class_method_signature: ImmutableAclEntry.of(final AuthorizationSubject authSubject, final Permission permission,
              final Permission... furtherPermissions)
focal_class.full_signature: public static AclEntry of(final AuthorizationSubject authSubject, final Permission permission,
              final Permission... furtherPermissions)
focal_class.identifier: of
focal_class.modifiers: public static
focal_class.parameters: (final AuthorizationSubject authSubject, final Permission permission,
              final Permission... furtherPermissions)
focal_class.return: AclEntry
focal_class.signature: AclEntry of(final AuthorizationSubject authSubject, final Permission permission,
              final Permission... furtherPermissions)
focal_class.class_method_signature: ImmutableAclEntry.of(final AuthorizationSubject authSubject, final Iterable<Permission> permissions)
focal_class.full_signature: public static AclEntry of(final AuthorizationSubject authSubject, final Iterable<Permission> permissions)
focal_class.identifier: of
focal_class.modifiers: public static
focal_class.parameters: (final AuthorizationSubject authSubject, final Iterable<Permission> permissions)
focal_class.return: AclEntry
focal_class.signature: AclEntry of(final AuthorizationSubject authSubject, final Iterable<Permission> permissions)
focal_class.class_method_signature: ImmutableAclEntry.of(final CharSequence jsonKey, final JsonValue jsonValue)
focal_class.full_signature: public static AclEntry of(final CharSequence jsonKey, final JsonValue jsonValue)
focal_class.identifier: of
focal_class.modifiers: public static
focal_class.parameters: (final CharSequence jsonKey, final JsonValue jsonValue)
focal_class.return: AclEntry
focal_class.signature: AclEntry of(final CharSequence jsonKey, final JsonValue jsonValue)
focal_class.class_method_signature: ImmutableAclEntry.validate(final CharSequence jsonKey, final JsonValue jsonValue)
focal_class.full_signature: private static void validate(final CharSequence jsonKey, final JsonValue jsonValue)
focal_class.identifier: validate
focal_class.modifiers: private static
focal_class.parameters: (final CharSequence jsonKey, final JsonValue jsonValue)
focal_class.return: void
focal_class.signature: void validate(final CharSequence jsonKey, final JsonValue jsonValue)
focal_class.class_method_signature: ImmutableAclEntry.validate(final CharSequence authSubjectId, final Permission permission,
              final Optional<JsonValue> permissionValue)
focal_class.full_signature: private static void validate(final CharSequence authSubjectId, final Permission permission,
              final Optional<JsonValue> permissionValue)
focal_class.identifier: validate
focal_class.modifiers: private static
focal_class.parameters: (final CharSequence authSubjectId, final Permission permission,
              final Optional<JsonValue> permissionValue)
focal_class.return: void
focal_class.signature: void validate(final CharSequence authSubjectId, final Permission permission,
              final Optional<JsonValue> permissionValue)
focal_class.class_method_signature: ImmutableAclEntry.validate(final AclEntry aclEntry)
focal_class.full_signature: private static void validate(final AclEntry aclEntry)
focal_class.identifier: validate
focal_class.modifiers: private static
focal_class.parameters: (final AclEntry aclEntry)
focal_class.return: void
focal_class.signature: void validate(final AclEntry aclEntry)
focal_class.class_method_signature: ImmutableAclEntry.fromJson(final JsonObject jsonObject)
focal_class.full_signature: public static AclEntry fromJson(final JsonObject jsonObject)
focal_class.identifier: fromJson
focal_class.modifiers: public static
focal_class.parameters: (final JsonObject jsonObject)
focal_class.return: AclEntry
focal_class.signature: AclEntry fromJson(final JsonObject jsonObject)
focal_class.class_method_signature: ImmutableAclEntry.getAuthorizationSubject()
focal_class.full_signature: @Override public AuthorizationSubject getAuthorizationSubject()
focal_class.identifier: getAuthorizationSubject
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: AuthorizationSubject
focal_class.signature: AuthorizationSubject getAuthorizationSubject()
focal_class.class_method_signature: ImmutableAclEntry.contains(final Permission permission)
focal_class.full_signature: @Override public boolean contains(final Permission permission)
focal_class.identifier: contains
focal_class.modifiers: @Override public
focal_class.parameters: (final Permission permission)
focal_class.return: boolean
focal_class.signature: boolean contains(final Permission permission)
focal_class.class_method_signature: ImmutableAclEntry.containsAll(@Nullable final Collection<Permission> permissions)
focal_class.full_signature: @Override public boolean containsAll(@Nullable final Collection<Permission> permissions)
focal_class.identifier: containsAll
focal_class.modifiers: @Override public
focal_class.parameters: (@Nullable final Collection<Permission> permissions)
focal_class.return: boolean
focal_class.signature: boolean containsAll(@Nullable final Collection<Permission> permissions)
focal_class.class_method_signature: ImmutableAclEntry.getPermissions()
focal_class.full_signature: @Override public Permissions getPermissions()
focal_class.identifier: getPermissions
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Permissions
focal_class.signature: Permissions getPermissions()
focal_class.class_method_signature: ImmutableAclEntry.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: ImmutableAclEntry.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: ImmutableAclEntry.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: ImmutableAclEntry.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: public static AclEntry fromJson(final JsonObject jsonObject) {
          checkNotNull(jsonObject, "JSON object");
  
          return jsonObject.stream()
                  .filter(field -> !Objects.equals(field.getKey(), JsonSchemaVersion.getJsonKey()))
                  .findFirst()
                  .map(field -> ImmutableAclEntry.of(field.getKey(), field.getValue()))
                  .orElseThrow(() -> new DittoJsonException(JsonMissingFieldException.newBuilder()
                          .message("The JSON object for 'aclEntry' is missing.")
                          .build()));
      }
focal_method.class_method_signature: ImmutableAclEntry.fromJson(final JsonObject jsonObject)
focal_method.full_signature: public static AclEntry fromJson(final JsonObject jsonObject)
focal_method.identifier: fromJson
focal_method.invocations: checkNotNull orElseThrow map findFirst filter stream equals getKey getJsonKey of getKey getValue build message newBuilder
focal_method.modifiers: public static
focal_method.parameters: (final JsonObject jsonObject)
focal_method.return: AclEntry
focal_method.signature: AclEntry fromJson(final JsonObject jsonObject)