2
2
package tests ;
3
3
4
4
@ javax .annotation .Generated ("gbc" )
5
- public class Foo <T > implements com . microsoft . bond .BondSerializable {
5
+ public class Foo <T > implements org . bondlib .BondSerializable {
6
6
7
7
public static abstract class GenericBondTypeBuilder {
8
8
9
9
private GenericBondTypeBuilder () {
10
10
}
11
11
12
- public abstract <T > com . microsoft . bond . StructBondType <Foo <T >> makeGenericType (com . microsoft . bond .BondType <T > T );
12
+ public abstract <T > org . bondlib . StructBondType <Foo <T >> makeGenericType (org . bondlib .BondType <T > T );
13
13
}
14
14
15
- private static final class StructBondTypeImpl <T > extends com . microsoft . bond .StructBondType <Foo <T >> {
15
+ private static final class StructBondTypeImpl <T > extends org . bondlib .StructBondType <Foo <T >> {
16
16
17
- static final class StructBondTypeBuilderImpl extends com . microsoft . bond .StructBondType .StructBondTypeBuilder <Foo > {
17
+ static final class StructBondTypeBuilderImpl extends org . bondlib .StructBondType .StructBondTypeBuilder <Foo > {
18
18
19
- private <T > com . microsoft . bond . StructBondType <Foo <T >> makeGenericType (com . microsoft . bond .BondType <T > T ) {
20
- com . microsoft . bond .helpers .ArgumentHelper .ensureNotNull (T , "T" );
19
+ private <T > org . bondlib . StructBondType <Foo <T >> makeGenericType (org . bondlib .BondType <T > T ) {
20
+ org . bondlib .helpers .ArgumentHelper .ensureNotNull (T , "T" );
21
21
return (StructBondTypeImpl ) this .getInitializedFromCache (T );
22
22
}
23
23
@@ -27,25 +27,25 @@ public final int getGenericTypeParameterCount() {
27
27
}
28
28
29
29
@ Override
30
- protected final com . microsoft . bond . StructBondType <Foo > buildNewInstance (com . microsoft . bond .BondType [] genericTypeArguments ) {
31
- return new StructBondTypeImpl (new com . microsoft . bond .GenericTypeSpecialization (genericTypeArguments ));
30
+ protected final org . bondlib . StructBondType <Foo > buildNewInstance (org . bondlib .BondType [] genericTypeArguments ) {
31
+ return new StructBondTypeImpl (new org . bondlib .GenericTypeSpecialization (genericTypeArguments ));
32
32
}
33
33
34
34
static void register () {
35
35
registerStructType (Foo .class , new StructBondTypeBuilderImpl ());
36
36
}
37
37
}
38
38
39
- private com . microsoft . bond .StructBondType .ObjectStructField <java .util .List <java .util .List <T >>> aa ;
39
+ private org . bondlib .StructBondType .ObjectStructField <java .util .List <java .util .List <T >>> aa ;
40
40
41
- private StructBondTypeImpl (com . microsoft . bond .GenericTypeSpecialization genericTypeSpecialization ) {
41
+ private StructBondTypeImpl (org . bondlib .GenericTypeSpecialization genericTypeSpecialization ) {
42
42
super (genericTypeSpecialization );
43
43
}
44
44
45
45
@ Override
46
46
protected final void initialize () {
47
- com . microsoft . bond .BondType <T > T = this .getGenericSpecialization ().getGenericTypeArgument (0 );
48
- this .aa = new com . microsoft . bond . StructBondType .ObjectStructField <java .util .List <java .util .List <T >>>(this , vectorOf (vectorOf (T )), 0 , "aa" , com . microsoft . bond .Modifier .Optional );
47
+ org . bondlib .BondType <T > T = this .getGenericSpecialization ().getGenericTypeArgument (0 );
48
+ this .aa = new org . bondlib . StructBondType .ObjectStructField <java .util .List <java .util .List <T >>>(this , vectorOf (vectorOf (T )), 0 , "aa" , org . bondlib .Modifier .Optional );
49
49
super .initializeBaseAndFields (null , this .aa );
50
50
}
51
51
@@ -70,12 +70,12 @@ public final Foo<T> newInstance() {
70
70
}
71
71
72
72
@ Override
73
- protected final void serializeStructFields (com . microsoft . bond .BondType .SerializationContext context , Foo <T > value ) throws java .io .IOException {
73
+ protected final void serializeStructFields (org . bondlib .BondType .SerializationContext context , Foo <T > value ) throws java .io .IOException {
74
74
this .aa .serialize (context , value .aa );
75
75
}
76
76
77
77
@ Override
78
- protected final void deserializeStructFields (com . microsoft . bond .BondType .TaggedDeserializationContext context , Foo <T > value ) throws java .io .IOException {
78
+ protected final void deserializeStructFields (org . bondlib .BondType .TaggedDeserializationContext context , Foo <T > value ) throws java .io .IOException {
79
79
boolean __has_aa = false ;
80
80
while (this .readField (context )) {
81
81
switch (context .readFieldResult .id ) {
@@ -92,7 +92,7 @@ protected final void deserializeStructFields(com.microsoft.bond.BondType.TaggedD
92
92
}
93
93
94
94
@ Override
95
- protected final void deserializeStructFields (com . microsoft . bond .BondType .UntaggedDeserializationContext context , Foo <T > value ) throws java .io .IOException {
95
+ protected final void deserializeStructFields (org . bondlib .BondType .UntaggedDeserializationContext context , Foo <T > value ) throws java .io .IOException {
96
96
value .aa = this .aa .deserialize (context );
97
97
}
98
98
@@ -112,7 +112,7 @@ protected final void cloneStructFields(Foo<T> fromValue, Foo<T> toValue) {
112
112
final StructBondTypeImpl .StructBondTypeBuilderImpl builder = new StructBondTypeImpl .StructBondTypeBuilderImpl ();
113
113
114
114
@ Override
115
- public final <T > com . microsoft . bond . StructBondType <Foo <T >> makeGenericType (com . microsoft . bond .BondType <T > T ) {
115
+ public final <T > org . bondlib . StructBondType <Foo <T >> makeGenericType (org . bondlib .BondType <T > T ) {
116
116
return this .builder .makeGenericType (T );
117
117
}
118
118
};
@@ -128,7 +128,7 @@ public static void initializeBondType() {
128
128
129
129
public java .util .List <java .util .List <T >> aa ;
130
130
131
- public Foo (com . microsoft . bond .StructBondType <Foo <T >> genericType ) {
131
+ public Foo (org . bondlib .StructBondType <Foo <T >> genericType ) {
132
132
super ();
133
133
this .__genericType = (StructBondTypeImpl <T >)genericType ;
134
134
this .__genericType .initializeStructFields (this );
@@ -153,7 +153,7 @@ public int hashCode() {
153
153
}
154
154
155
155
@ Override
156
- public com . microsoft . bond .StructBondType <? extends Foo <T >> getBondType () {
156
+ public org . bondlib .StructBondType <? extends Foo <T >> getBondType () {
157
157
return this .__genericType ;
158
158
}
159
159
}
@@ -162,15 +162,15 @@ public com.microsoft.bond.StructBondType<? extends Foo<T>> getBondType() {
162
162
163
163
164
164
@ javax .annotation .Generated ("gbc" )
165
- public final class EnumToWrap implements com . microsoft . bond .BondEnum <EnumToWrap > {
165
+ public final class EnumToWrap implements org . bondlib .BondEnum <EnumToWrap > {
166
166
167
167
public static final class Values {
168
168
private Values () {}
169
169
170
170
public static final int anEnumValue = 0 ;
171
171
}
172
172
173
- private static final class EnumBondTypeImpl extends com . microsoft . bond .EnumBondType <EnumToWrap > {
173
+ private static final class EnumBondTypeImpl extends org . bondlib .EnumBondType <EnumToWrap > {
174
174
175
175
@ Override
176
176
public java .lang .Class <EnumToWrap > getValueClass () { return EnumToWrap .class ; }
@@ -179,7 +179,7 @@ private static final class EnumBondTypeImpl extends com.microsoft.bond.EnumBondT
179
179
public final EnumToWrap getEnumValue (int value ) { return get (value ); }
180
180
}
181
181
182
- public static final com . microsoft . bond .EnumBondType <EnumToWrap > BOND_TYPE = new EnumBondTypeImpl ();
182
+ public static final org . bondlib .EnumBondType <EnumToWrap > BOND_TYPE = new EnumBondTypeImpl ();
183
183
184
184
public static final EnumToWrap anEnumValue = new EnumToWrap (Values .anEnumValue , "anEnumValue" );
185
185
@@ -196,7 +196,7 @@ private static final class EnumBondTypeImpl extends com.microsoft.bond.EnumBondT
196
196
public final String getLabel () { return this .label ; }
197
197
198
198
@ Override
199
- public final com . microsoft . bond .EnumBondType <EnumToWrap > getBondType () { return BOND_TYPE ; }
199
+ public final org . bondlib .EnumBondType <EnumToWrap > getBondType () { return BOND_TYPE ; }
200
200
201
201
@ Override
202
202
public final int compareTo (EnumToWrap o ) { return this .value < o .value ? -1 : (this .value > o .value ? 1 : 0 ); }
@@ -231,19 +231,19 @@ public static EnumToWrap valueOf(String str) {
231
231
package tests ;
232
232
233
233
@ javax .annotation .Generated ("gbc" )
234
- public class WrappingAnEnum implements com . microsoft . bond .BondSerializable {
234
+ public class WrappingAnEnum implements org . bondlib .BondSerializable {
235
235
236
- private static final class StructBondTypeImpl extends com . microsoft . bond .StructBondType <WrappingAnEnum > {
236
+ private static final class StructBondTypeImpl extends org . bondlib .StructBondType <WrappingAnEnum > {
237
237
238
- static final class StructBondTypeBuilderImpl extends com . microsoft . bond .StructBondType .StructBondTypeBuilder <WrappingAnEnum > {
238
+ static final class StructBondTypeBuilderImpl extends org . bondlib .StructBondType .StructBondTypeBuilder <WrappingAnEnum > {
239
239
240
240
@ Override
241
241
public final int getGenericTypeParameterCount () {
242
242
return 0 ;
243
243
}
244
244
245
245
@ Override
246
- protected final com . microsoft . bond . StructBondType <WrappingAnEnum > buildNewInstance (com . microsoft . bond .BondType [] genericTypeArguments ) {
246
+ protected final org . bondlib . StructBondType <WrappingAnEnum > buildNewInstance (org . bondlib .BondType [] genericTypeArguments ) {
247
247
return new StructBondTypeImpl (null );
248
248
}
249
249
@@ -252,15 +252,15 @@ static void register() {
252
252
}
253
253
}
254
254
255
- private com . microsoft . bond .StructBondType .EnumStructField <tests .EnumToWrap > aWrappedEnum ;
255
+ private org . bondlib .StructBondType .EnumStructField <tests .EnumToWrap > aWrappedEnum ;
256
256
257
- private StructBondTypeImpl (com . microsoft . bond .GenericTypeSpecialization genericTypeSpecialization ) {
257
+ private StructBondTypeImpl (org . bondlib .GenericTypeSpecialization genericTypeSpecialization ) {
258
258
super (genericTypeSpecialization );
259
259
}
260
260
261
261
@ Override
262
262
protected final void initialize () {
263
- this .aWrappedEnum = new com . microsoft . bond . StructBondType .EnumStructField <tests .EnumToWrap >(this , tests .EnumToWrap .BOND_TYPE , 0 , "aWrappedEnum" , com . microsoft . bond .Modifier .Optional );
263
+ this .aWrappedEnum = new org . bondlib . StructBondType .EnumStructField <tests .EnumToWrap >(this , tests .EnumToWrap .BOND_TYPE , 0 , "aWrappedEnum" , org . bondlib .Modifier .Optional );
264
264
super .initializeBaseAndFields (null , this .aWrappedEnum );
265
265
}
266
266
@@ -285,12 +285,12 @@ public final WrappingAnEnum newInstance() {
285
285
}
286
286
287
287
@ Override
288
- protected final void serializeStructFields (com . microsoft . bond .BondType .SerializationContext context , WrappingAnEnum value ) throws java .io .IOException {
288
+ protected final void serializeStructFields (org . bondlib .BondType .SerializationContext context , WrappingAnEnum value ) throws java .io .IOException {
289
289
this .aWrappedEnum .serialize (context , value .aWrappedEnum );
290
290
}
291
291
292
292
@ Override
293
- protected final void deserializeStructFields (com . microsoft . bond .BondType .TaggedDeserializationContext context , WrappingAnEnum value ) throws java .io .IOException {
293
+ protected final void deserializeStructFields (org . bondlib .BondType .TaggedDeserializationContext context , WrappingAnEnum value ) throws java .io .IOException {
294
294
boolean __has_aWrappedEnum = false ;
295
295
while (this .readField (context )) {
296
296
switch (context .readFieldResult .id ) {
@@ -307,7 +307,7 @@ protected final void deserializeStructFields(com.microsoft.bond.BondType.TaggedD
307
307
}
308
308
309
309
@ Override
310
- protected final void deserializeStructFields (com . microsoft . bond .BondType .UntaggedDeserializationContext context , WrappingAnEnum value ) throws java .io .IOException {
310
+ protected final void deserializeStructFields (org . bondlib .BondType .UntaggedDeserializationContext context , WrappingAnEnum value ) throws java .io .IOException {
311
311
value .aWrappedEnum = this .aWrappedEnum .deserialize (context );
312
312
}
313
313
@@ -322,7 +322,7 @@ protected final void cloneStructFields(WrappingAnEnum fromValue, WrappingAnEnum
322
322
}
323
323
}
324
324
325
- public static final com . microsoft . bond .StructBondType <WrappingAnEnum > BOND_TYPE = new StructBondTypeImpl .StructBondTypeBuilderImpl ().getInitializedFromCache ();
325
+ public static final org . bondlib .StructBondType <WrappingAnEnum > BOND_TYPE = new StructBondTypeImpl .StructBondTypeBuilderImpl ().getInitializedFromCache ();
326
326
327
327
public static void initializeBondType () {
328
328
StructBondTypeImpl .StructBondTypeBuilderImpl .register ();
@@ -359,7 +359,7 @@ public int hashCode() {
359
359
}
360
360
361
361
@ Override
362
- public com . microsoft . bond .StructBondType <? extends WrappingAnEnum > getBondType () {
362
+ public org . bondlib .StructBondType <? extends WrappingAnEnum > getBondType () {
363
363
return BOND_TYPE ;
364
364
}
365
365
}
0 commit comments