Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
13 views

Lombok's @Builder annotation blocks unit test code coverage

I have the following declarations for a JavaBean class: @Data @NoArgsConstructor @Builder @AllArgsConstructor public class ClassNameDTO { // ... } When I run IntelliJ coverage configured for ...
Dmitri Surname's user avatar
0 votes
0 answers
11 views

Create an Existing Type Entity in the Database and Add it to a Data Entity Without Ever Loading the Type Entity Symfony or Builder with no params

I am facing a rather specific problem. We’ve inherited an application that has been around for a long time, doesn’t have any test suite, and is hard to maintain. To improve this, we’ve created a ...
vincent clerc's user avatar
1 vote
1 answer
60 views

Stream map over classes with Lombok SuperBuilder

Class MyEntity extends a base class. Both have lombok's (version 1.18.34) @SuperBuilder annotation. @Getter @Setter @SuperBuilder @ToString(onlyExplicitlyIncluded = true) @EqualsAndHashCode public ...
syydi's user avatar
  • 191
0 votes
0 answers
19 views

Building a "Catalogue" mapping configurations to classes in python

I have many classes in Python, all inherited from the same abstract class. Each class has a config of its own. I want to create a catalog/builder class where I map the configs to the classes once. The ...
nono's user avatar
  • 185
1 vote
0 answers
451 views

How to configure webpack.config.ts @angular-builders/custom-webpack Angular 18

I am using an Angular 18 project and @angular-builders/custom-webpack@18 for the custom Webpack configuration. The issue I am facing is that I am developing a web component that uses an image, and I ...
Logesh B's user avatar
1 vote
1 answer
124 views

How to Create a Windows Executable with Electron Forge that Adds a Desktop Shortcut?

I'm working on an Electron app and using electron-forge to build the executable file. My goal is to create an installer that behaves like a typical Windows installer, including creating an app icon/...
Tom Stevenson's user avatar
0 votes
0 answers
35 views

How do I return the correct builder from a builder hierarchy in a generic factory method?

I want to write a factory method that takes a generic builder as a parameter and returns the same type. I created a class hierarchy with xjc with the jaxb-rich-contract-plugin and the -Xfluent-builder ...
towi's user avatar
  • 22.2k
-2 votes
1 answer
57 views

Can a Lombok builder be used fluently?

I want to populate an object based on the field names which I will pass in at runtime. I created an object with a Lombok builder and a setField static method to populate the object with the runtime ...
amadain's user avatar
  • 2,836
-1 votes
1 answer
105 views

Builder design pattern for API endpoint Spring Boot

I tried to use a builder design pattern for a model class. I need to have some mandatory files and some optional fields; this design could help me in this scenario. I am using Spring Boot and Java 22 ...
Al3x4ndru1's user avatar
2 votes
1 answer
77 views

What is the advantage of adding a static "builder()" method in the Builder Pattern? [closed]

I'm wondering about whether my implementation of the Builder pattern is wrong or not. Let's say we have a User class for which we want to have a Builder, my implementation would be: public class User {...
user avatar
0 votes
0 answers
40 views

Inconsistent layout with custom markdown builders

I have the following three builders to provide subscripts and superscripts, plus a dynamically colorable code block. All of them are handled by their respective InlineSyntax handlers properly. class ...
Gábor's user avatar
  • 10.2k
0 votes
0 answers
32 views

Android Kotlin ScanFilter Builder class not functioning

As stated above, I'm trying to use ScanFilter.Builder() to construct a filter for my bluetooth application, and it gives an unresolved reference error. I have ScanFilter properly imported, and the ...
Incog's user avatar
  • 3
3 votes
1 answer
134 views

Multiple constructors annotated with Lombok @Builder cause a problem?

This is my first question, so please feel free to correct anything that I missed writing this question:) I am having trouble with using the @Bulider with my DTO objects. I have an abstract class "...
Doh Kun Lee sanity's user avatar
0 votes
0 answers
33 views

Genie Builder won't start. I get the following: ERROR: LoadError: UndefVarError: `BE8` not defined

I have installed genie builder, but I cannot start. Here is the installation order: 1- I installed Julia language in my computer 2- I then installed genie.jl using Pkg.add(Genie) 3- I then installed ...
Caesar Edward's user avatar
2 votes
2 answers
83 views

How to create a step builder in Kotlin that supports repeatable steps

I am investigationg step builder patterns in Kotlin and have a requirement where some of the steps are repeatable or loop able as follows:- I have a Map<Header, List<Item>> and would like ...
Hector's user avatar
  • 5,412
0 votes
0 answers
18 views

My pagefooter with setting - print only last page - apears on more pages

I've made a invoice report based on a dataset from AL (Business Central). It contains 2 dataitems - head and line information. NB: the head contains the totals of the invoice. The totals of the ...
carlo Kentjens's user avatar
1 vote
1 answer
66 views

Groovy merge 2 builder classes

I have a big class Customer for which I am using groovy's @Builder annotation to generate builder classes. This works fine but while writing unit tests what I want to do is to define a customer with ...
Ambuj Jauhari's user avatar
0 votes
1 answer
323 views

Fusion Builder Design and Animation tabs not working in Wordpress editor

The problem is in the Avada Fusion Builder editor of Wordpress, practically the Design and Animation tabs of Fusion Builder do not work. I can access the editor page, click on each component but for ...
Matteo21's user avatar
-1 votes
1 answer
67 views

Typed builder pattern: bypassing invariants runtime

I would like to determine if there is a way to follow the type state pattern but allow invariants if there is an alternative. Suppose I have a builder pattern for a wrapper struct around a trait. ...
Jinyoung Choi's user avatar
1 vote
2 answers
159 views

Documentation of gtk xml builder definition

Where can I find the documentation of GTK xml definitions for gtk builder files? For example for gtkwindow I found only this: https://docs.gtk.org/gtk4/class.Window.html#gtkwindow-as-gtkbuildable ...
Alexander's user avatar
0 votes
1 answer
102 views

Error: The named parameter 'child' is required, but there's no corresponding argument. Try adding the required argument

This is the code below: `// Automatic FlutterFlow imports import '/flutter_flow/flutter_flow_theme.dart'; import '/flutter_flow/flutter_flow_util.dart'; import '/custom_code/widgets/index.dart'; // ...
Abdul Samad Gilal's user avatar
1 vote
1 answer
156 views

Is there an essential difference in using of `Widget` or `WidgetBuilder` to pass widget as parameter to another widget in flutter

Let's say I have a widget: class MyWidget { final Widget? leading; final WidgetBuilder? trailing; Widget build(BuildContext context) { return Row( children: [ if(leading != ...
BambinoUA's user avatar
  • 7,050
0 votes
0 answers
65 views

RWbuilder not opening

Can anyone please help me. I have installed oracle forms and reports however, unable to use rwbuilder. All the prerequisite softwares are installed but still unable to use. tried all possible ...
M R Nandhini's user avatar
0 votes
0 answers
15 views

User-defined type assertion guard for builder results in data field being null

I am trying to make a builder that allows for both chaining and type assertions. Chaining is working fine. Assertions, however, are not updating the data correctly. type BuilderSchema = { [k in ...
A Kam's user avatar
  • 41
0 votes
0 answers
82 views

Custom Preview Function in GrapesJS Page Builder

I have successfully implemented a page builder using the GrapesJS tool, and it's functioning as expected. However, I'm looking to enhance the user experience by adding a custom preview function that ...
Atlas's user avatar
  • 134
0 votes
2 answers
868 views

GrapeJS - How to save and load customized page

I created a simple page builder by following GrapeJS Docs and it is working well. I think there need to be 2 functions to save and load the generated page. How can I do this? const editor = grapesjs....
Top Dev's user avatar
  • 26
0 votes
0 answers
151 views

Facing problem while creating build of electron js project

i found this error in my terminal while i'm creating build • electron-builder version=24.13.3 os=10.0.22631 • loaded configuration file=package.json ("build" field) • writing effective ...
Darsh8's user avatar
  • 1
0 votes
2 answers
61 views

How can I enforce the first method used in builder pattern (C#)

I'm currently learning the builder pattern and want to require some sort of order/options of methods, and mainly make this visible in intellisense, so not (just) with exceptions on wrong ...
Paul's user avatar
  • 57
0 votes
0 answers
102 views

Spring(Legacy Project) : Errors running builder 'Java Builder' on project 'ProjectName'. javax/annotation/processing/AbstractProcessor

error Has anyone faced this error? someone suspected this error caused from java path setting . In my descktop i have jdk 11 and jdk 17. this project is made based on jdk 11 so i created a system ...
Icebear1226's user avatar
0 votes
1 answer
105 views

Jackson Xml - how to use builder

According to the current information at the jackson github site, it is possible to configure the serializer using builder style construction. However what I don't see is what are the configuration ...
jaesle's user avatar
  • 556
0 votes
0 answers
293 views

WPBakery Page Builder | Create custom element and align

I have created a custom WP Bakery element called "Custom Title." This element allows users to input text and align it. The alignment section should have a default dropdown with options such ...
prabhath840's user avatar
1 vote
1 answer
166 views

Fluent way (builder style) of creating a Mockito mock with method stubs

One of ways to create a Mockito mock in Java is to create the mock stubb the methods. For instance like this: // this code is just a imaginary proposal private Properties emptyProperties() { ...
fascynacja's user avatar
  • 2,754
0 votes
1 answer
73 views

Kotlin: initializing vals within custom builder function

I created some custom data types and corresponding builders which are heavily used within unit tests. The general pattern looks somewhat like this: @Test fun testSomething(){ object { val ...
Burdui's user avatar
  • 1,302
1 vote
1 answer
134 views

Spring Boot Builder with abstract classes

I have a class called Property which is an abstract class and has the following properties: @SuperBuilder @Setter @Getter public abstract class Property { private String id; private String ...
Nisi Zenuni's user avatar
0 votes
1 answer
61 views

I am using lombok builder in Data Provider Class but i am getting Data provider mismatch

This is my Provider method @DataProvider(name = "loginDataSet") public static Object[][] loginSet() { return new Object[][]{ { String....
Lakshmikanth KR's user avatar
0 votes
1 answer
235 views

Add the sum of an expression at the bottom of a Colum in Microsoft report builder

I have been at this for a few days off and on and I cannot figure it out. I Have a row that does some calculation based on student population. IF the school is not named "Bad school" (not ...
Taylor Korthals's user avatar
0 votes
0 answers
61 views

How to handle large amount of data from array of pointer struct faster in Golang?

I want to create a CSV file from []*dto.Customer. Getting all values and convert each struct values into a single string & then push into an array. Finally write into string builder then convert ...
Hariharan Panneerselvam's user avatar
0 votes
1 answer
394 views

Create your own class from a template with GTK4, C and XML

I'm trying to test the example from the GNOME Developer Documentation. https://developer.gnome.org/documentation/tutorials/widget-templates.html But I seem to be doing something wrong, because I get ...
Holger's user avatar
  • 975
0 votes
1 answer
103 views

C# Make Builder Pattern Maintain Interface Capabilities

I'm trying to compose a builder pattern which is extended by implementing interfaces multiple times. Here is a code snippet for what I'm trying to do. namespace BuilderChaining { internal ...
PurpleKoala's user avatar
0 votes
1 answer
242 views

Fluent Builder with asynchronous methods

I was working on developing a Fluent Builder and encountered the need to incorporate asynchronous methods without disrupting the chaining. How can I address this? A fictional example to illustrate the ...
Odmilson Maestri Jr's user avatar
0 votes
0 answers
107 views

Builder Pattern in Typescript Similar to Java - chaining in parent class

I am trying to implement TicTacToe game in typescript. In this, the class HumanPlayer and BotPlayer inherit ab abstract class Player. To create the instance of HumanPlayer and BotPlayer - using ...
ajayv's user avatar
  • 703
0 votes
0 answers
33 views

How render more items form top and from bottom?

I need to render items in list form top and bottom without using listView because it will fill phone memory.Is anyway to do it? I used the cacheExtent property but it only worked once, I want to use ...
Mee's user avatar
  • 43
0 votes
1 answer
95 views

ADF Pipeline Expression Builder Regexreplace

I need to know how to formulate an ADF Pipeline Expression for regexreplace, supplying a parameter @dataset().table_name. I have the expression: @regexreplace(@dataset().table_name, '[^a-zA-Z0-9_]', '...
Bert's user avatar
  • 3
1 vote
1 answer
304 views

Implement an async builder pattern in Rust

I want to implement a future for a builder. This can be common for examples such as configuring a request via a builder, then sending it off. I want to implement IntoFuture for a builder but I cannot ...
Jinyoung Choi's user avatar
0 votes
1 answer
122 views

Builder pattern with setup correctness guaranteed at compile time

I have created a module to make HTTP requests that it's used like: response, err := Get[ResponseType]("https://example.com"). Query("foo", "bar"). Header("Accept&...
betabandido's user avatar
  • 19.7k
0 votes
2 answers
61 views

Builder Pattern : Can our director deal with Concrete builders directly?

I was reading builder design pattern and have the following doubt - Why director cannot accept the concrete builder type reference ? Suppose, we have a CarBuilder interface which implemented by 2 ...
Number945's user avatar
  • 4,940
0 votes
1 answer
108 views

Flutter gradient background for entire screens issue

I was trying to add gradient background to all screens at once so I found a good way but it's not working as expected !! class MyApp extends StatelessWidget { const MyApp({super.key}); // This ...
Annos's user avatar
  • 1
1 vote
1 answer
209 views

Azure Api Builder with docker .env

I'm currently trying to use a .env file together with the dab-config.json in a docker container. Since Azure recently published the option to use environments. I changed the dab-config.json by using ...
Chronos's user avatar
  • 11
2 votes
1 answer
2k views

Lombok @SuperBuilder - convert an object from one child class to another, preserving the parents' fields

I need to convert an instance of one class to a "sibling" class (both inheriting from the same parent) without explicitly setting common/parents' fields. The goal is to make this "...
MK_Dev's user avatar
  • 3,333
0 votes
0 answers
129 views

Java return an implementation of a builder

I made a functional builder for a class which works like so new ComponentStatus.Builder() .with($ -> { $.name = element.getName(); $.state = element.getState(); ...
caduceus's user avatar
  • 1,818

1
2 3 4 5
39