File tree Expand file tree Collapse file tree 5 files changed +0
-43
lines changed
experimental/lambda/src/main/java/io/serverlessworkflow/impl/expressions/func
core/src/main/java/io/serverlessworkflow/impl
jackson/src/main/java/io/serverlessworkflow/impl/expressions/jq Expand file tree Collapse file tree 5 files changed +0
-43
lines changed Original file line number Diff line number Diff line change 2222import java .util .Map ;
2323import java .util .Map .Entry ;
2424import java .util .Optional ;
25- import java .util .function .BiConsumer ;
2625import java .util .stream .Collectors ;
2726
2827public class JavaModel implements WorkflowModel {
@@ -37,17 +36,6 @@ protected void setObject(Object object) {
3736 this .object = object ;
3837 }
3938
40- @ Override
41- public void forEach (BiConsumer <String , WorkflowModel > consumer ) {
42- asMap ()
43- .ifPresent (
44- m ->
45- m .forEach (
46- (k , v ) ->
47- consumer .accept (
48- k , v instanceof WorkflowModel model ? model : new JavaModel (v ))));
49- }
50-
5139 @ Override
5240 public Optional <Boolean > asBoolean () {
5341 return object instanceof Boolean value ? Optional .of (value ) : Optional .empty ();
@@ -99,11 +87,6 @@ static Object asJavaObject(Object object) {
9987 }
10088 }
10189
102- @ Override
103- public Object asIs () {
104- return object ;
105- }
106-
10790 @ Override
10891 public Class <?> objectClass () {
10992 return object != null ? object .getClass () : Object .class ;
Original file line number Diff line number Diff line change @@ -132,11 +132,6 @@ public Object asJavaObject() {
132132 return object ;
133133 }
134134
135- @ Override
136- public Object asIs () {
137- return object ;
138- }
139-
140135 @ Override
141136 public Class <?> objectClass () {
142137 return object .getClass ();
Original file line number Diff line number Diff line change 1919import java .util .Collection ;
2020import java .util .Map ;
2121import java .util .Optional ;
22- import java .util .function .BiConsumer ;
2322
2423public interface WorkflowModel {
2524
26- void forEach (BiConsumer <String , WorkflowModel > consumer );
27-
2825 Optional <Boolean > asBoolean ();
2926
3027 Collection <WorkflowModel > asCollection ();
@@ -39,8 +36,6 @@ public interface WorkflowModel {
3936
4037 Object asJavaObject ();
4138
42- Object asIs ();
43-
4439 Class <?> objectClass ();
4540
4641 <T > Optional <T > as (Class <T > clazz );
Original file line number Diff line number Diff line change 2727import java .util .Collections ;
2828import java .util .Map ;
2929import java .util .Optional ;
30- import java .util .function .BiConsumer ;
3130
3231@ JsonSerialize (using = JacksonModelSerializer .class )
3332public class JacksonModel implements WorkflowModel {
@@ -42,11 +41,6 @@ public class JacksonModel implements WorkflowModel {
4241 this .node = node ;
4342 }
4443
45- @ Override
46- public void forEach (BiConsumer <String , WorkflowModel > consumer ) {
47- node .forEachEntry ((k , v ) -> consumer .accept (k , new JacksonModel (v )));
48- }
49-
5044 @ Override
5145 public Optional <Boolean > asBoolean () {
5246 return node .isBoolean () ? Optional .of (node .asBoolean ()) : Optional .empty ();
@@ -97,11 +91,6 @@ public Object asJavaObject() {
9791 return JsonUtils .toJavaValue (node );
9892 }
9993
100- @ Override
101- public Object asIs () {
102- return node ;
103- }
104-
10594 @ Override
10695 public Class <?> objectClass () {
10796 return node .getClass ();
Original file line number Diff line number Diff line change @@ -145,11 +145,6 @@ public Object asJavaObject() {
145145 return JsonUtils .toJavaValue (node );
146146 }
147147
148- @ Override
149- public Object asIs () {
150- return node ;
151- }
152-
153148 @ Override
154149 public Class <?> objectClass () {
155150 return ArrayNode .class ;
You can’t perform that action at this time.
0 commit comments