mercredi 6 janvier 2021

Set a value using builder pattern in java

final ScheduledTaskItem scheduledTaskItem = secretsManager.get(getHierarchicalPath(test),
                        ScheduledTaskItem.class);

 scheduledTaskItem.setLastAccessedAt(Timestamp.from(Instant.now()));
 scheduledTaskItem.setAlreadyScheduled(true);

I want to set the values using builder pattern not with setter. How can i set these values in scheduledTaskItem using builder pattern.

Aucun commentaire:

Enregistrer un commentaire