test_class.file: jug-cfp-backend/src/test/java/org/jugvale/cfp/rest/RESTUtilsTest.java
test_class.identifier: RESTUtilsTest
test_case.body: @Test
      public void checkNullableEntitiesAndRemapTest() {
          Response response = RESTUtils.checkNullableEntitiesAndRemap(1l, null, (a, b) -> "");
          assertEquals(404, response.getStatus());
          response = RESTUtils.checkNullableEntitiesAndRemap(null, "", (a, b) -> "");
          assertEquals(404, response.getStatus());
          response = RESTUtils.checkNullableEntitiesAndRemap("", "", (a, b) -> "ENTITY");
          assertEquals(200, response.getStatus());
          assertEquals("ENTITY", response.getEntity());
      }
test_case.class_method_signature: RESTUtilsTest.checkNullableEntitiesAndRemapTest()
test_case.full_signature: @Test public void checkNullableEntitiesAndRemapTest()
test_case.identifier: checkNullableEntitiesAndRemapTest
test_case.invocations: checkNullableEntitiesAndRemap assertEquals getStatus checkNullableEntitiesAndRemap assertEquals getStatus checkNullableEntitiesAndRemap assertEquals getStatus assertEquals getEntity
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void checkNullableEntitiesAndRemapTest()
focal_class.declarator: _ENCONTRADO = "Não encontrado";
focal_class.modifier: private static final
focal_class.original_string: private static final String NÃO_ENCONTRADO = "Não encontrado";
focal_class.type: String
focal_class.var_name: _ENCONTRADO 
focal_class.file: jug-cfp-backend/src/main/java/org/jugvale/cfp/rest/RESTUtils.java
focal_class.identifier: RESTUtils
focal_class.class_method_signature: RESTUtils.created(Class<?> resource, Long id)
focal_class.full_signature: public static Response created(Class<?> resource, Long id)
focal_class.identifier: created
focal_class.modifiers: public static
focal_class.parameters: (Class<?> resource, Long id)
focal_class.return: Response
focal_class.signature: Response created(Class<?> resource, Long id)
focal_class.class_method_signature: RESTUtils.checkEntityAndUpdate(T entity, Consumer<T> propsUpdate)
focal_class.full_signature: public static Response checkEntityAndUpdate(T entity, Consumer<T> propsUpdate)
focal_class.identifier: checkEntityAndUpdate
focal_class.modifiers: public static
focal_class.parameters: (T entity, Consumer<T> propsUpdate)
focal_class.return: Response
focal_class.signature: Response checkEntityAndUpdate(T entity, Consumer<T> propsUpdate)
focal_class.class_method_signature: RESTUtils.checkNullableEntitiesAndRemap(T entity, U entity2,
                                                                  BiFunction<T, U, ?> remapFunction)
focal_class.full_signature: public static Response checkNullableEntitiesAndRemap(T entity, U entity2,
                                                                  BiFunction<T, U, ?> remapFunction)
focal_class.identifier: checkNullableEntitiesAndRemap
focal_class.modifiers: public static
focal_class.parameters: (T entity, U entity2,
                                                                  BiFunction<T, U, ?> remapFunction)
focal_class.return: Response
focal_class.signature: Response checkNullableEntitiesAndRemap(T entity, U entity2,
                                                                  BiFunction<T, U, ?> remapFunction)
focal_class.class_method_signature: RESTUtils.checkNullableEntityAndRemap(T entity, Function<T, Q> remapFunction)
focal_class.full_signature: public static Response checkNullableEntityAndRemap(T entity, Function<T, Q> remapFunction)
focal_class.identifier: checkNullableEntityAndRemap
focal_class.modifiers: public static
focal_class.parameters: (T entity, Function<T, Q> remapFunction)
focal_class.return: Response
focal_class.signature: Response checkNullableEntityAndRemap(T entity, Function<T, Q> remapFunction)
focal_class.class_method_signature: RESTUtils.checkNullableEntityAndReturn(T entity, Function<T, List<?>> then)
focal_class.full_signature: public static Response checkNullableEntityAndReturn(T entity, Function<T, List<?>> then)
focal_class.identifier: checkNullableEntityAndReturn
focal_class.modifiers: public static
focal_class.parameters: (T entity, Function<T, List<?>> then)
focal_class.return: Response
focal_class.signature: Response checkNullableEntityAndReturn(T entity, Function<T, List<?>> then)
focal_class.class_method_signature: RESTUtils.responseForNullableEntity(Object entity)
focal_class.full_signature: public static Response responseForNullableEntity(Object entity)
focal_class.identifier: responseForNullableEntity
focal_class.modifiers: public static
focal_class.parameters: (Object entity)
focal_class.return: Response
focal_class.signature: Response responseForNullableEntity(Object entity)
focal_class.class_method_signature: RESTUtils.okWithEntity(Object entity)
focal_class.full_signature: private static Response okWithEntity(Object entity)
focal_class.identifier: okWithEntity
focal_class.modifiers: private static
focal_class.parameters: (Object entity)
focal_class.return: Response
focal_class.signature: Response okWithEntity(Object entity)
focal_class.class_method_signature: RESTUtils.notFound()
focal_class.full_signature: private static Response notFound()
focal_class.identifier: notFound
focal_class.modifiers: private static
focal_class.parameters: ()
focal_class.return: Response
focal_class.signature: Response notFound()
focal_method.body: public static <T, U> Response checkNullableEntitiesAndRemap(T entity, U entity2,
                                                                  BiFunction<T, U, ?> remapFunction) {
          if (entity != null && entity2 != null) {
              return okWithEntity(remapFunction.apply(entity, entity2));
          } else {
              return notFound();
          }
      }
focal_method.class_method_signature: RESTUtils.checkNullableEntitiesAndRemap(T entity, U entity2,
                                                                  BiFunction<T, U, ?> remapFunction)
focal_method.full_signature: public static Response checkNullableEntitiesAndRemap(T entity, U entity2,
                                                                  BiFunction<T, U, ?> remapFunction)
focal_method.identifier: checkNullableEntitiesAndRemap
focal_method.invocations: okWithEntity apply notFound
focal_method.modifiers: public static
focal_method.parameters: (T entity, U entity2,
                                                                  BiFunction<T, U, ?> remapFunction)
focal_method.return: Response
focal_method.signature: Response checkNullableEntitiesAndRemap(T entity, U entity2,
                                                                  BiFunction<T, U, ?> remapFunction)