This repository has been archived by the owner on Nov 27, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
5 additions
and
11 deletions.
There are no files selected for viewing
10 changes: 2 additions & 8 deletions
10
daemawiki-domain/src/main/java/org/daemawiki/domain/document_editor/model/Editor.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,9 @@ | ||
package org.daemawiki.domain.document_editor.model; | ||
|
||
import lombok.Builder; | ||
|
||
@Builder | ||
public record Editor(String user, String id) { | ||
|
||
public static Editor create(String user, String id) { | ||
return Editor.builder() | ||
.user(user) | ||
.id(id) | ||
.build(); | ||
public static Editor of(String user, String id) { | ||
return new Editor(user, id); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters