1 //
2 // Copyright (c) ZeroC, Inc. All rights reserved.
3 //
4 
5 package test.Ice.optional;
6 
7 import test.Ice.optional.AMD.Test.*;
8 
9 public final class AMDInitialI extends _InitialDisp
10 {
11     @Override
12     public void
shutdown_async(AMD_Initial_shutdown cb, Ice.Current current)13     shutdown_async(AMD_Initial_shutdown cb, Ice.Current current)
14     {
15         current.adapter.getCommunicator().shutdown();
16         cb.ice_response();
17     }
18 
19     @Override
20     public void
pingPong_async(AMD_Initial_pingPong cb, Ice.Object obj, Ice.Current current)21     pingPong_async(AMD_Initial_pingPong cb, Ice.Object obj, Ice.Current current)
22     {
23         cb.ice_response(obj);
24     }
25 
26     @Override
27     public void
opOptionalException_async(AMD_Initial_opOptionalException cb, Ice.IntOptional a, Ice.Optional<String> b, Ice.Optional<OneOptional> o, Ice.Current current)28     opOptionalException_async(AMD_Initial_opOptionalException cb, Ice.IntOptional a, Ice.Optional<String> b,
29                               Ice.Optional<OneOptional> o, Ice.Current current)
30         throws OptionalException
31     {
32         OptionalException ex = new OptionalException();
33         if(a.isSet())
34         {
35             ex.setA(a.get());
36         }
37         else
38         {
39             ex.clearA(); // The member "a" has a default value.
40         }
41         if(b.isSet())
42         {
43             ex.setB(b.get());
44         }
45         if(o.isSet())
46         {
47             ex.setO(o.get());
48         }
49         cb.ice_exception(ex);
50     }
51 
52     @Override
53     public void
opDerivedException_async(AMD_Initial_opDerivedException cb, Ice.IntOptional a, Ice.Optional<String> b, Ice.Optional<OneOptional> o, Ice.Current current)54     opDerivedException_async(AMD_Initial_opDerivedException cb, Ice.IntOptional a, Ice.Optional<String> b,
55                              Ice.Optional<OneOptional> o, Ice.Current current)
56         throws OptionalException
57     {
58         DerivedException ex = new DerivedException();
59         if(a.isSet())
60         {
61             ex.setA(a.get());
62         }
63         else
64         {
65             ex.clearA(); // The member "a" has a default value.
66         }
67         if(b.isSet())
68         {
69             ex.setB(b.get());
70             ex.setSs(b.get());
71         }
72         else
73         {
74             ex.clearSs(); // The member "ss" has a default value.
75         }
76         if(o.isSet())
77         {
78             ex.setO(o.get());
79             ex.setO2(o.get());
80         }
81         cb.ice_exception(ex);
82     }
83 
84     @Override
85     public void
opRequiredException_async(AMD_Initial_opRequiredException cb, Ice.IntOptional a, Ice.Optional<String> b, Ice.Optional<OneOptional> o, Ice.Current current)86     opRequiredException_async(AMD_Initial_opRequiredException cb, Ice.IntOptional a, Ice.Optional<String> b,
87                               Ice.Optional<OneOptional> o, Ice.Current current)
88         throws OptionalException
89     {
90         RequiredException ex = new RequiredException();
91         if(a.isSet())
92         {
93             ex.setA(a.get());
94         }
95         else
96         {
97             ex.clearA(); // The member "a" has a default value.
98         }
99         if(b.isSet())
100         {
101             ex.setB(b.get());
102             ex.ss = b.get();
103         }
104         if(o.isSet())
105         {
106             ex.setO(o.get());
107             ex.o2 = o.get();
108         }
109         cb.ice_exception(ex);
110     }
111 
112     @Override
113     public void
opByte_async(AMD_Initial_opByte cb, Ice.ByteOptional p1, Ice.Current current)114     opByte_async(AMD_Initial_opByte cb, Ice.ByteOptional p1, Ice.Current current)
115     {
116         cb.ice_response(p1, p1);
117     }
118 
119     @Override
120     public void
opByteReq_async(AMD_Initial_opByteReq cb, Ice.ByteOptional p1, Ice.Current current)121     opByteReq_async(AMD_Initial_opByteReq cb, Ice.ByteOptional p1, Ice.Current current)
122     {
123         cb.ice_response(p1.get(), p1.get());
124     }
125 
126     @Override
127     public void
opBool_async(AMD_Initial_opBool cb, Ice.BooleanOptional p1, Ice.Current current)128     opBool_async(AMD_Initial_opBool cb, Ice.BooleanOptional p1, Ice.Current current)
129     {
130         cb.ice_response(p1, p1);
131     }
132 
133     @Override
134     public void
opBoolReq_async(AMD_Initial_opBoolReq cb, Ice.BooleanOptional p1, Ice.Current current)135     opBoolReq_async(AMD_Initial_opBoolReq cb, Ice.BooleanOptional p1, Ice.Current current)
136     {
137         cb.ice_response(p1.get(), p1.get());
138     }
139 
140     @Override
141     public void
opShort_async(AMD_Initial_opShort cb, Ice.ShortOptional p1, Ice.Current current)142     opShort_async(AMD_Initial_opShort cb, Ice.ShortOptional p1, Ice.Current current)
143     {
144         cb.ice_response(p1, p1);
145     }
146 
147     @Override
148     public void
opShortReq_async(AMD_Initial_opShortReq cb, Ice.ShortOptional p1, Ice.Current current)149     opShortReq_async(AMD_Initial_opShortReq cb, Ice.ShortOptional p1, Ice.Current current)
150     {
151         cb.ice_response(p1.get(), p1.get());
152     }
153 
154     @Override
155     public void
opInt_async(AMD_Initial_opInt cb, Ice.IntOptional p1, Ice.Current current)156     opInt_async(AMD_Initial_opInt cb, Ice.IntOptional p1, Ice.Current current)
157     {
158         cb.ice_response(p1, p1);
159     }
160 
161     @Override
162     public void
opIntReq_async(AMD_Initial_opIntReq cb, Ice.IntOptional p1, Ice.Current current)163     opIntReq_async(AMD_Initial_opIntReq cb, Ice.IntOptional p1, Ice.Current current)
164     {
165         cb.ice_response(p1.get(), p1.get());
166     }
167 
168     @Override
169     public void
opLong_async(AMD_Initial_opLong cb, Ice.LongOptional p1, Ice.Current current)170     opLong_async(AMD_Initial_opLong cb, Ice.LongOptional p1, Ice.Current current)
171     {
172         cb.ice_response(p1, p1);
173     }
174 
175     @Override
176     public void
opLongReq_async(AMD_Initial_opLongReq cb, Ice.LongOptional p1, Ice.Current current)177     opLongReq_async(AMD_Initial_opLongReq cb, Ice.LongOptional p1, Ice.Current current)
178     {
179         cb.ice_response(p1.get(), p1.get());
180     }
181 
182     @Override
183     public void
opFloat_async(AMD_Initial_opFloat cb, Ice.FloatOptional p1, Ice.Current current)184     opFloat_async(AMD_Initial_opFloat cb, Ice.FloatOptional p1, Ice.Current current)
185     {
186         cb.ice_response(p1, p1);
187     }
188 
189     @Override
190     public void
opFloatReq_async(AMD_Initial_opFloatReq cb, Ice.FloatOptional p1, Ice.Current current)191     opFloatReq_async(AMD_Initial_opFloatReq cb, Ice.FloatOptional p1, Ice.Current current)
192     {
193         cb.ice_response(p1.get(), p1.get());
194     }
195 
196     @Override
197     public void
opDouble_async(AMD_Initial_opDouble cb, Ice.DoubleOptional p1, Ice.Current current)198     opDouble_async(AMD_Initial_opDouble cb, Ice.DoubleOptional p1, Ice.Current current)
199     {
200         cb.ice_response(p1, p1);
201     }
202 
203     @Override
204     public void
opDoubleReq_async(AMD_Initial_opDoubleReq cb, Ice.DoubleOptional p1, Ice.Current current)205     opDoubleReq_async(AMD_Initial_opDoubleReq cb, Ice.DoubleOptional p1, Ice.Current current)
206     {
207         cb.ice_response(p1.get(), p1.get());
208     }
209 
210     @Override
211     public void
opString_async(AMD_Initial_opString cb, Ice.Optional<String> p1, Ice.Current current)212     opString_async(AMD_Initial_opString cb, Ice.Optional<String> p1, Ice.Current current)
213     {
214         cb.ice_response(p1, p1);
215     }
216 
217     @Override
218     public void
opStringReq_async(AMD_Initial_opStringReq cb, Ice.Optional<String> p1, Ice.Current current)219     opStringReq_async(AMD_Initial_opStringReq cb, Ice.Optional<String> p1, Ice.Current current)
220     {
221         cb.ice_response(p1.get(), p1.get());
222     }
223 
224     @Override
225     public void
opMyEnum_async(AMD_Initial_opMyEnum cb, Ice.Optional<MyEnum> p1, Ice.Current current)226     opMyEnum_async(AMD_Initial_opMyEnum cb, Ice.Optional<MyEnum> p1, Ice.Current current)
227     {
228         cb.ice_response(p1, p1);
229     }
230 
231     @Override
232     public void
opMyEnumReq_async(AMD_Initial_opMyEnumReq cb, Ice.Optional<MyEnum> p1, Ice.Current current)233     opMyEnumReq_async(AMD_Initial_opMyEnumReq cb, Ice.Optional<MyEnum> p1, Ice.Current current)
234     {
235         cb.ice_response(p1.get(), p1.get());
236     }
237 
238     @Override
239     public void
opSmallStruct_async(AMD_Initial_opSmallStruct cb, Ice.Optional<SmallStruct> p1, Ice.Current current)240     opSmallStruct_async(AMD_Initial_opSmallStruct cb, Ice.Optional<SmallStruct> p1, Ice.Current current)
241     {
242         cb.ice_response(p1, p1);
243     }
244 
245     @Override
246     public void
opSmallStructReq_async(AMD_Initial_opSmallStructReq cb, Ice.Optional<SmallStruct> p1, Ice.Current current)247     opSmallStructReq_async(AMD_Initial_opSmallStructReq cb, Ice.Optional<SmallStruct> p1, Ice.Current current)
248     {
249         cb.ice_response(p1.get(), p1.get());
250     }
251 
252     @Override
253     public void
opFixedStruct_async(AMD_Initial_opFixedStruct cb, Ice.Optional<FixedStruct> p1, Ice.Current current)254     opFixedStruct_async(AMD_Initial_opFixedStruct cb, Ice.Optional<FixedStruct> p1, Ice.Current current)
255     {
256         cb.ice_response(p1, p1);
257     }
258 
259     @Override
260     public void
opFixedStructReq_async(AMD_Initial_opFixedStructReq cb, Ice.Optional<FixedStruct> p1, Ice.Current current)261     opFixedStructReq_async(AMD_Initial_opFixedStructReq cb, Ice.Optional<FixedStruct> p1, Ice.Current current)
262     {
263         cb.ice_response(p1.get(), p1.get());
264     }
265 
266     @Override
267     public void
opVarStruct_async(AMD_Initial_opVarStruct cb, Ice.Optional<VarStruct> p1, Ice.Current current)268     opVarStruct_async(AMD_Initial_opVarStruct cb, Ice.Optional<VarStruct> p1, Ice.Current current)
269     {
270         cb.ice_response(p1, p1);
271     }
272 
273     @Override
274     public void
opVarStructReq_async(AMD_Initial_opVarStructReq cb, Ice.Optional<VarStruct> p1, Ice.Current current)275     opVarStructReq_async(AMD_Initial_opVarStructReq cb, Ice.Optional<VarStruct> p1, Ice.Current current)
276     {
277         cb.ice_response(p1.get(), p1.get());
278     }
279 
280     @Override
281     public void
opOneOptional_async(AMD_Initial_opOneOptional cb, Ice.Optional<OneOptional> p1, Ice.Current current)282     opOneOptional_async(AMD_Initial_opOneOptional cb, Ice.Optional<OneOptional> p1, Ice.Current current)
283     {
284         cb.ice_response(p1, p1);
285     }
286 
287     @Override
288     public void
opOneOptionalReq_async(AMD_Initial_opOneOptionalReq cb, Ice.Optional<OneOptional> p1, Ice.Current current)289     opOneOptionalReq_async(AMD_Initial_opOneOptionalReq cb, Ice.Optional<OneOptional> p1, Ice.Current current)
290     {
291         cb.ice_response(p1.get(), p1.get());
292     }
293 
294     @Override
295     public void
opOneOptionalProxy_async(AMD_Initial_opOneOptionalProxy cb, Ice.Optional<OneOptionalPrx> p1, Ice.Current current)296     opOneOptionalProxy_async(AMD_Initial_opOneOptionalProxy cb, Ice.Optional<OneOptionalPrx> p1, Ice.Current current)
297     {
298         cb.ice_response(p1, p1);
299     }
300 
301     @Override
302     public void
opOneOptionalProxyReq_async(AMD_Initial_opOneOptionalProxyReq cb, Ice.Optional<OneOptionalPrx> p1, Ice.Current current)303     opOneOptionalProxyReq_async(AMD_Initial_opOneOptionalProxyReq cb, Ice.Optional<OneOptionalPrx> p1,
304                                 Ice.Current current)
305     {
306         cb.ice_response(p1.get(), p1.get());
307     }
308 
309     @Override
310     public void
opByteSeq_async(AMD_Initial_opByteSeq cb, Ice.Optional<byte[]> p1, Ice.Current current)311     opByteSeq_async(AMD_Initial_opByteSeq cb, Ice.Optional<byte[]> p1, Ice.Current current)
312     {
313         cb.ice_response(p1, p1);
314     }
315 
316     @Override
317     public void
opByteSeqReq_async(AMD_Initial_opByteSeqReq cb, Ice.Optional<byte[]> p1, Ice.Current current)318     opByteSeqReq_async(AMD_Initial_opByteSeqReq cb, Ice.Optional<byte[]> p1, Ice.Current current)
319     {
320         cb.ice_response(p1.get(), p1.get());
321     }
322 
323     @Override
324     public void
opBoolSeq_async(AMD_Initial_opBoolSeq cb, Ice.Optional<boolean[]> p1, Ice.Current current)325     opBoolSeq_async(AMD_Initial_opBoolSeq cb, Ice.Optional<boolean[]> p1, Ice.Current current)
326     {
327         cb.ice_response(p1, p1);
328     }
329 
330     @Override
331     public void
opBoolSeqReq_async(AMD_Initial_opBoolSeqReq cb, Ice.Optional<boolean[]> p1, Ice.Current current)332     opBoolSeqReq_async(AMD_Initial_opBoolSeqReq cb, Ice.Optional<boolean[]> p1, Ice.Current current)
333     {
334         cb.ice_response(p1.get(), p1.get());
335     }
336 
337     @Override
338     public void
opShortSeq_async(AMD_Initial_opShortSeq cb, Ice.Optional<short[]> p1, Ice.Current current)339     opShortSeq_async(AMD_Initial_opShortSeq cb, Ice.Optional<short[]> p1, Ice.Current current)
340     {
341         cb.ice_response(p1, p1);
342     }
343 
344     @Override
345     public void
opShortSeqReq_async(AMD_Initial_opShortSeqReq cb, Ice.Optional<short[]> p1, Ice.Current current)346     opShortSeqReq_async(AMD_Initial_opShortSeqReq cb, Ice.Optional<short[]> p1, Ice.Current current)
347     {
348         cb.ice_response(p1.get(), p1.get());
349     }
350 
351     @Override
352     public void
opIntSeq_async(AMD_Initial_opIntSeq cb, Ice.Optional<int[]> p1, Ice.Current current)353     opIntSeq_async(AMD_Initial_opIntSeq cb, Ice.Optional<int[]> p1, Ice.Current current)
354     {
355         cb.ice_response(p1, p1);
356     }
357 
358     @Override
359     public void
opIntSeqReq_async(AMD_Initial_opIntSeqReq cb, Ice.Optional<int[]> p1, Ice.Current current)360     opIntSeqReq_async(AMD_Initial_opIntSeqReq cb, Ice.Optional<int[]> p1, Ice.Current current)
361     {
362         cb.ice_response(p1.get(), p1.get());
363     }
364 
365     @Override
366     public void
opLongSeq_async(AMD_Initial_opLongSeq cb, Ice.Optional<long[]> p1, Ice.Current current)367     opLongSeq_async(AMD_Initial_opLongSeq cb, Ice.Optional<long[]> p1, Ice.Current current)
368     {
369         cb.ice_response(p1, p1);
370     }
371 
372     @Override
373     public void
opLongSeqReq_async(AMD_Initial_opLongSeqReq cb, Ice.Optional<long[]> p1, Ice.Current current)374     opLongSeqReq_async(AMD_Initial_opLongSeqReq cb, Ice.Optional<long[]> p1, Ice.Current current)
375     {
376         cb.ice_response(p1.get(), p1.get());
377     }
378 
379     @Override
380     public void
opFloatSeq_async(AMD_Initial_opFloatSeq cb, Ice.Optional<float[]> p1, Ice.Current current)381     opFloatSeq_async(AMD_Initial_opFloatSeq cb, Ice.Optional<float[]> p1, Ice.Current current)
382     {
383         cb.ice_response(p1, p1);
384     }
385 
386     @Override
387     public void
opFloatSeqReq_async(AMD_Initial_opFloatSeqReq cb, Ice.Optional<float[]> p1, Ice.Current current)388     opFloatSeqReq_async(AMD_Initial_opFloatSeqReq cb, Ice.Optional<float[]> p1, Ice.Current current)
389     {
390         cb.ice_response(p1.get(), p1.get());
391     }
392 
393     @Override
394     public void
opDoubleSeq_async(AMD_Initial_opDoubleSeq cb, Ice.Optional<double[]> p1, Ice.Current current)395     opDoubleSeq_async(AMD_Initial_opDoubleSeq cb, Ice.Optional<double[]> p1, Ice.Current current)
396     {
397         cb.ice_response(p1, p1);
398     }
399 
400     @Override
401     public void
opDoubleSeqReq_async(AMD_Initial_opDoubleSeqReq cb, Ice.Optional<double[]> p1, Ice.Current current)402     opDoubleSeqReq_async(AMD_Initial_opDoubleSeqReq cb, Ice.Optional<double[]> p1, Ice.Current current)
403     {
404         cb.ice_response(p1.get(), p1.get());
405     }
406 
407     @Override
408     public void
opStringSeq_async(AMD_Initial_opStringSeq cb, Ice.Optional<String[]> p1, Ice.Current current)409     opStringSeq_async(AMD_Initial_opStringSeq cb, Ice.Optional<String[]> p1, Ice.Current current)
410     {
411         cb.ice_response(p1, p1);
412     }
413 
414     @Override
415     public void
opStringSeqReq_async(AMD_Initial_opStringSeqReq cb, Ice.Optional<String[]> p1, Ice.Current current)416     opStringSeqReq_async(AMD_Initial_opStringSeqReq cb, Ice.Optional<String[]> p1, Ice.Current current)
417     {
418         cb.ice_response(p1.get(), p1.get());
419     }
420 
421     @Override
422     public void
opSmallStructSeq_async(AMD_Initial_opSmallStructSeq cb, Ice.Optional<SmallStruct[]> p1, Ice.Current current)423     opSmallStructSeq_async(AMD_Initial_opSmallStructSeq cb, Ice.Optional<SmallStruct[]> p1, Ice.Current current)
424     {
425         cb.ice_response(p1, p1);
426     }
427 
428     @Override
429     public void
opSmallStructSeqReq_async(AMD_Initial_opSmallStructSeqReq cb, Ice.Optional<SmallStruct[]> p1, Ice.Current current)430     opSmallStructSeqReq_async(AMD_Initial_opSmallStructSeqReq cb, Ice.Optional<SmallStruct[]> p1, Ice.Current current)
431     {
432         cb.ice_response(p1.get(), p1.get());
433     }
434 
435     @Override
436     public void
opSmallStructList_async(AMD_Initial_opSmallStructList cb, Ice.Optional<java.util.List<SmallStruct>> p1, Ice.Current current)437     opSmallStructList_async(AMD_Initial_opSmallStructList cb, Ice.Optional<java.util.List<SmallStruct>> p1,
438                             Ice.Current current)
439     {
440         cb.ice_response(p1, p1);
441     }
442 
443     @Override
444     public void
opSmallStructListReq_async(AMD_Initial_opSmallStructListReq cb, Ice.Optional<java.util.List<SmallStruct>> p1, Ice.Current current)445     opSmallStructListReq_async(AMD_Initial_opSmallStructListReq cb, Ice.Optional<java.util.List<SmallStruct>> p1,
446                                Ice.Current current)
447     {
448         cb.ice_response(p1.get(), p1.get());
449     }
450 
451     @Override
452     public void
opFixedStructSeq_async(AMD_Initial_opFixedStructSeq cb, Ice.Optional<FixedStruct[]> p1, Ice.Current current)453     opFixedStructSeq_async(AMD_Initial_opFixedStructSeq cb, Ice.Optional<FixedStruct[]> p1, Ice.Current current)
454     {
455         cb.ice_response(p1, p1);
456     }
457 
458     @Override
459     public void
opFixedStructSeqReq_async(AMD_Initial_opFixedStructSeqReq cb, Ice.Optional<FixedStruct[]> p1, Ice.Current current)460     opFixedStructSeqReq_async(AMD_Initial_opFixedStructSeqReq cb, Ice.Optional<FixedStruct[]> p1, Ice.Current current)
461     {
462         cb.ice_response(p1.get(), p1.get());
463     }
464 
465     @Override
466     public void
opFixedStructList_async(AMD_Initial_opFixedStructList cb, Ice.Optional<java.util.List<FixedStruct>> p1, Ice.Current current)467     opFixedStructList_async(AMD_Initial_opFixedStructList cb, Ice.Optional<java.util.List<FixedStruct>> p1,
468                             Ice.Current current)
469     {
470         cb.ice_response(p1, p1);
471     }
472 
473     @Override
474     public void
opFixedStructListReq_async(AMD_Initial_opFixedStructListReq cb, Ice.Optional<java.util.List<FixedStruct>> p1, Ice.Current current)475     opFixedStructListReq_async(AMD_Initial_opFixedStructListReq cb, Ice.Optional<java.util.List<FixedStruct>> p1,
476                                Ice.Current current)
477     {
478         cb.ice_response(p1.get(), p1.get());
479     }
480 
481     @Override
482     public void
opVarStructSeq_async(AMD_Initial_opVarStructSeq cb, Ice.Optional<VarStruct[]> p1, Ice.Current current)483     opVarStructSeq_async(AMD_Initial_opVarStructSeq cb, Ice.Optional<VarStruct[]> p1, Ice.Current current)
484     {
485         cb.ice_response(p1, p1);
486     }
487 
488     @Override
489     public void
opVarStructSeqReq_async(AMD_Initial_opVarStructSeqReq cb, Ice.Optional<VarStruct[]> p1, Ice.Current current)490     opVarStructSeqReq_async(AMD_Initial_opVarStructSeqReq cb, Ice.Optional<VarStruct[]> p1, Ice.Current current)
491     {
492         cb.ice_response(p1.get(), p1.get());
493     }
494 
495     @Override
496     public void
opSerializable_async(AMD_Initial_opSerializable cb, Ice.Optional<SerializableClass> p1, Ice.Current current)497     opSerializable_async(AMD_Initial_opSerializable cb, Ice.Optional<SerializableClass> p1, Ice.Current current)
498     {
499         cb.ice_response(p1, p1);
500     }
501 
502     @Override
503     public void
opSerializableReq_async(AMD_Initial_opSerializableReq cb, Ice.Optional<SerializableClass> p1, Ice.Current current)504     opSerializableReq_async(AMD_Initial_opSerializableReq cb, Ice.Optional<SerializableClass> p1, Ice.Current current)
505     {
506         cb.ice_response(p1.get(), p1.get());
507     }
508 
509     @Override
510     public void
opIntIntDict_async(AMD_Initial_opIntIntDict cb, Ice.Optional<java.util.Map<Integer, Integer>> p1, Ice.Current current)511     opIntIntDict_async(AMD_Initial_opIntIntDict cb, Ice.Optional<java.util.Map<Integer, Integer>> p1,
512                        Ice.Current current)
513     {
514         cb.ice_response(p1, p1);
515     }
516 
517     @Override
518     public void
opIntIntDictReq_async(AMD_Initial_opIntIntDictReq cb, Ice.Optional<java.util.Map<Integer, Integer>> p1, Ice.Current current)519     opIntIntDictReq_async(AMD_Initial_opIntIntDictReq cb, Ice.Optional<java.util.Map<Integer, Integer>> p1,
520                           Ice.Current current)
521     {
522         cb.ice_response(p1.get(), p1.get());
523     }
524 
525     @Override
526     public void
opStringIntDict_async(AMD_Initial_opStringIntDict cb, Ice.Optional<java.util.Map<String, Integer>> p1, Ice.Current current)527     opStringIntDict_async(AMD_Initial_opStringIntDict cb, Ice.Optional<java.util.Map<String, Integer>> p1,
528                           Ice.Current current)
529     {
530         cb.ice_response(p1, p1);
531     }
532 
533     @Override
534     public void
opStringIntDictReq_async(AMD_Initial_opStringIntDictReq cb, Ice.Optional<java.util.Map<String, Integer>> p1, Ice.Current current)535     opStringIntDictReq_async(AMD_Initial_opStringIntDictReq cb, Ice.Optional<java.util.Map<String, Integer>> p1,
536                              Ice.Current current)
537     {
538         cb.ice_response(p1.get(), p1.get());
539     }
540 
541     @Override
542     public void
opIntOneOptionalDict_async(AMD_Initial_opIntOneOptionalDict cb, Ice.Optional<java.util.Map<Integer, OneOptional>> p1, Ice.Current current)543     opIntOneOptionalDict_async(AMD_Initial_opIntOneOptionalDict cb,
544         Ice.Optional<java.util.Map<Integer, OneOptional>> p1, Ice.Current current)
545     {
546         cb.ice_response(p1, p1);
547     }
548 
549     @Override
550     public void
opIntOneOptionalDictReq_async(AMD_Initial_opIntOneOptionalDictReq cb, Ice.Optional<java.util.Map<Integer, OneOptional>> p1, Ice.Current current)551     opIntOneOptionalDictReq_async(AMD_Initial_opIntOneOptionalDictReq cb,
552         Ice.Optional<java.util.Map<Integer, OneOptional>> p1, Ice.Current current)
553     {
554         cb.ice_response(p1.get(), p1.get());
555     }
556 
557     @Override
558     public void
opClassAndUnknownOptional_async(AMD_Initial_opClassAndUnknownOptional cb, A p, Ice.Current current)559     opClassAndUnknownOptional_async(AMD_Initial_opClassAndUnknownOptional cb, A p, Ice.Current current)
560     {
561         cb.ice_response();
562     }
563 
564     @Override
565     public void
sendOptionalClass_async(AMD_Initial_sendOptionalClass cb, boolean req, Ice.Optional<OneOptional> o, Ice.Current current)566     sendOptionalClass_async(AMD_Initial_sendOptionalClass cb, boolean req, Ice.Optional<OneOptional> o,
567                             Ice.Current current)
568     {
569         cb.ice_response();
570     }
571 
572     @Override
573     public void
returnOptionalClass_async(AMD_Initial_returnOptionalClass cb, boolean req, Ice.Current current)574     returnOptionalClass_async(AMD_Initial_returnOptionalClass cb, boolean req, Ice.Current current)
575     {
576         cb.ice_response(new Ice.Optional<OneOptional>(new OneOptional(53)));
577     }
578 
579     @Override
580     public void
opG_async(AMD_Initial_opG cb, G g, Ice.Current current)581     opG_async(AMD_Initial_opG cb, G g, Ice.Current current)
582     {
583         cb.ice_response(g);
584     }
585 
586     @Override
587     public void
opVoid_async(AMD_Initial_opVoid cb, Ice.Current current)588     opVoid_async(AMD_Initial_opVoid cb, Ice.Current current)
589     {
590         cb.ice_response();
591     }
592 
593     @Override
594     public void
opMStruct1_async(AMD_Initial_opMStruct1 cb, Ice.Current current)595     opMStruct1_async(AMD_Initial_opMStruct1 cb, Ice.Current current)
596     {
597         cb.ice_response(new Ice.Optional<SmallStruct>(new SmallStruct()));
598     }
599 
600     @Override
601     public void
opMStruct2_async(AMD_Initial_opMStruct2 cb, Ice.Optional<SmallStruct> p1, Ice.Current current)602     opMStruct2_async(AMD_Initial_opMStruct2 cb, Ice.Optional<SmallStruct> p1, Ice.Current current)
603     {
604         cb.ice_response(p1, p1);
605     }
606 
607     @Override
608     public void
opMSeq1_async(AMD_Initial_opMSeq1 cb, Ice.Current current)609     opMSeq1_async(AMD_Initial_opMSeq1 cb, Ice.Current current)
610     {
611         cb.ice_response(new Ice.Optional<String[]>(new String[0]));
612     }
613 
614     @Override
615     public void
opMSeq2_async(AMD_Initial_opMSeq2 cb, Ice.Optional<String[]> p1, Ice.Current current)616     opMSeq2_async(AMD_Initial_opMSeq2 cb, Ice.Optional<String[]> p1, Ice.Current current)
617     {
618         cb.ice_response(p1, p1);
619     }
620 
621     @Override
622     public void
opMDict1_async(AMD_Initial_opMDict1 cb, Ice.Current current)623     opMDict1_async(AMD_Initial_opMDict1 cb, Ice.Current current)
624     {
625         cb.ice_response(new Ice.Optional<java.util.Map<String, Integer>>(new java.util.HashMap<String, Integer>()));
626     }
627 
628     @Override
629     public void
opMDict2_async(AMD_Initial_opMDict2 cb, Ice.Optional<java.util.Map<String, Integer>> p1, Ice.Current current)630     opMDict2_async(AMD_Initial_opMDict2 cb, Ice.Optional<java.util.Map<String, Integer>> p1, Ice.Current current)
631     {
632         cb.ice_response(p1, p1);
633     }
634 
635     @Override
636     public void
opMG1_async(AMD_Initial_opMG1 cb, Ice.Current current)637     opMG1_async(AMD_Initial_opMG1 cb, Ice.Current current)
638     {
639         cb.ice_response(new Ice.Optional<G>(new G()));
640     }
641 
642     @Override
643     public void
opMG2_async(AMD_Initial_opMG2 cb, Ice.Optional<G> p1, Ice.Current current)644     opMG2_async(AMD_Initial_opMG2 cb, Ice.Optional<G> p1, Ice.Current current)
645     {
646         cb.ice_response(p1, p1);
647     }
648 
649     @Override
650     public void
supportsRequiredParams_async(AMD_Initial_supportsRequiredParams cb, Ice.Current current)651     supportsRequiredParams_async(AMD_Initial_supportsRequiredParams cb, Ice.Current current)
652     {
653         cb.ice_response(true);
654     }
655 
656     @Override
657     public void
supportsJavaSerializable_async(AMD_Initial_supportsJavaSerializable cb, Ice.Current current)658     supportsJavaSerializable_async(AMD_Initial_supportsJavaSerializable cb, Ice.Current current)
659     {
660         cb.ice_response(true);
661     }
662 
663     @Override
664     public void
supportsCsharpSerializable_async(AMD_Initial_supportsCsharpSerializable cb, Ice.Current current)665     supportsCsharpSerializable_async(AMD_Initial_supportsCsharpSerializable cb, Ice.Current current)
666     {
667         cb.ice_response(false);
668     }
669 
670     @Override
671     public void
supportsCppStringView_async(AMD_Initial_supportsCppStringView cb, Ice.Current current)672     supportsCppStringView_async(AMD_Initial_supportsCppStringView cb, Ice.Current current)
673     {
674         cb.ice_response(false);
675     }
676 
677     @Override
678     public void
supportsNullOptional_async(AMD_Initial_supportsNullOptional cb, Ice.Current current)679     supportsNullOptional_async(AMD_Initial_supportsNullOptional cb, Ice.Current current)
680     {
681         cb.ice_response(true);
682     }
683 }
684