-
Notifications
You must be signed in to change notification settings - Fork 1
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
Romuald Rousseau
committed
Aug 27, 2024
1 parent
eb3688b
commit 66349be
Showing
19 changed files
with
823 additions
and
326 deletions.
There are no files selected for viewing
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
149 changes: 0 additions & 149 deletions
149
any2json/src/main/java/com/github/romualdrousseau/any2json/ModelBuilder.java
This file was deleted.
Oops, something went wrong.
23 changes: 23 additions & 0 deletions
23
any2json/src/main/java/com/github/romualdrousseau/any2json/ModelData.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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package com.github.romualdrousseau.any2json; | ||
|
||
import java.nio.file.Path; | ||
import java.util.List; | ||
import java.util.Map; | ||
import java.util.Optional; | ||
|
||
public interface ModelData { | ||
|
||
<T> Optional<T> get(String key); | ||
|
||
<T> ModelData set(String key, T value); | ||
|
||
List<String> getList(String key); | ||
|
||
ModelData setList(String key, List<String> values); | ||
|
||
Map<String, String> getMap(String key); | ||
|
||
ModelData setMap(String key, Map<String, String> values); | ||
|
||
void save(Path path); | ||
} |
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
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
Oops, something went wrong.