-
Notifications
You must be signed in to change notification settings - Fork 16
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
1 parent
8d7762c
commit 462f3af
Showing
3 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
...in/java-predicates-generated/com/commercetools/api/predicates/expansion/ExpansionDsl.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,17 @@ | ||
|
||
package com.commercetools.api.predicates.expansion; | ||
|
||
import java.util.List; | ||
|
||
import io.vrap.rmf.base.client.Builder; | ||
import io.vrap.rmf.base.client.utils.Generated; | ||
|
||
@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") | ||
public interface ExpansionDsl extends Builder<String> { | ||
public List<String> getPath(); | ||
|
||
@Override | ||
public default String build() { | ||
return String.join(".", getPath()); | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
...n/java-predicates-generated/com/commercetools/api/predicates/expansion/ExpansionUtil.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,18 @@ | ||
|
||
package com.commercetools.api.predicates.expansion; | ||
|
||
import java.util.ArrayList; | ||
import java.util.Collections; | ||
import java.util.List; | ||
|
||
import io.vrap.rmf.base.client.utils.Generated; | ||
|
||
@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") | ||
public class ExpansionUtil { | ||
|
||
public static <T> List<T> appendOne(final List<T> list, T element) { | ||
final List<T> arr = new ArrayList(list); | ||
arr.add(element); | ||
return Collections.unmodifiableList(arr); | ||
} | ||
} |
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