EntityQueries { private static void checkFilterType(Column column, Filter filter) { Class<?> expectedType = column.type(); Any filterConvent = filter.getValue(); Object filterValue = toObject(filterConvent, expectedType); Class<?> actualType = filterValue.getClass(); checkArgument(wrap(expectedType).isAssignableFrom(wrap(actualType)), "Column type mismatch. Column `%s` cannot have value `%s`.", column, filterValue); } private  EntityQueries(); static EntityQuery<I> from(TargetFilters filters,
                                          RecordStorage<I> storage);  }
@Test @DisplayName("check filter type") void checkFilterType() { Filter filter = Filters.gt(archived.name(), 42); CompositeFilter compositeFilter = Filters.all(filter); TargetFilters filters = TargetFilters .newBuilder() .addFilter(compositeFilter) .build(); assertThrows(IllegalArgumentException.class, () -> createEntityQuery(filters, TestEntity.class)); }