Skip to content

Commit

Permalink
[json-node] Reorder methods on SimpleMapper JsonNodeMapper
Browse files Browse the repository at this point in the history
  • Loading branch information
rbygrave committed Dec 16, 2024
1 parent 3bc985e commit 3e3e12b
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 34 deletions.
34 changes: 17 additions & 17 deletions json-core/src/main/java/io/avaje/json/simple/SimpleMapper.java
Original file line number Diff line number Diff line change
Expand Up @@ -43,23 +43,6 @@ static Builder builder() {
return new DSimpleMapperBuilder();
}

/**
* Return the property names as PropertyNames.
* <p>
* Provides the option of optimising the writing of json for property names
* by having them already escaped and encoded rather than as plain strings.
*/
PropertyNames properties(String... names);

/**
* Return a Type specific mapper for the given JsonAdapter.
*
* @param customAdapter The custom adapter to use.
* @param <T> The type of the class to map to/from json.
* @return The Type specific mapper.
*/
<T> Type<T> type(JsonAdapter<T> customAdapter);

/**
* Return a mapper for any json content.
*/
Expand Down Expand Up @@ -109,6 +92,23 @@ static Builder builder() {
*/
List<Object> fromJsonArray(String json);

/**
* Return the property names as PropertyNames.
* <p>
* Provides the option of optimising the writing of json for property names
* by having them already escaped and encoded rather than as plain strings.
*/
PropertyNames properties(String... names);

/**
* Return a Type specific mapper for the given JsonAdapter.
*
* @param customAdapter The custom adapter to use.
* @param <T> The type of the class to map to/from json.
* @return The Type specific mapper.
*/
<T> Type<T> type(JsonAdapter<T> customAdapter);

/**
* Build the JsonNodeMapper.
*/
Expand Down
34 changes: 17 additions & 17 deletions json-node/src/main/java/io/avaje/json/node/JsonNodeMapper.java
Original file line number Diff line number Diff line change
Expand Up @@ -42,23 +42,6 @@ static Builder builder() {
return new NodeAdapterBuilder();
}

/**
* Return the property names as PropertyNames.
* <p>
* Provides the option of optimising the writing of json for property names
* by having them already escaped and encoded rather than as plain strings.
*/
PropertyNames properties(String... names);

/**
* Return a Type specific mapper for the given JsonAdapter.
*
* @param customAdapter The custom adapter to use.
* @param <T> The type of the class to map to/from json.
* @return The Type specific mapper.
*/
<T> SimpleMapper.Type<T> type(JsonAdapter<T> customAdapter);

/**
* Return a NodeMapper for ANY json content.
* <p>
Expand Down Expand Up @@ -166,6 +149,23 @@ static Builder builder() {
*/
JsonAdapter<?> adapter(Type type);

/**
* Return the property names as PropertyNames.
* <p>
* Provides the option of optimising the writing of json for property names
* by having them already escaped and encoded rather than as plain strings.
*/
PropertyNames properties(String... names);

/**
* Return a Type specific mapper for the given JsonAdapter.
*
* @param customAdapter The custom adapter to use.
* @param <T> The type of the class to map to/from json.
* @return The Type specific mapper.
*/
<T> SimpleMapper.Type<T> type(JsonAdapter<T> customAdapter);

/**
* Build the JsonNodeMapper.
*/
Expand Down

0 comments on commit 3e3e12b

Please sign in to comment.