Skip to content

Commit

Permalink
build(codegen): updating SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
ct-sdks[bot] committed May 31, 2024
1 parent 8d7762c commit 462f3af
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 0 deletions.
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());
}
}
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);
}
}
1 change: 1 addition & 0 deletions references.txt
Original file line number Diff line number Diff line change
Expand Up @@ -241,3 +241,4 @@ eac13cfcb88a83f4f4e977ba51c0b11e458cff61
1b650bc8eb1a78c3487484900b1e36d06226c6e2
9f96ac14ba13a3702b5d59c67900ee92b5416075
782c15fc6ad5a74efa39a0f121cdf992d2771d05
5bb32d115089a1be919275f2ea07f7fa0ce567c7

0 comments on commit 462f3af

Please sign in to comment.