hydraql.shaded.fastjson2.reader.ObjectReader12 Maven / Gradle / Ivy
The newest version!
package hydraql.shaded.fastjson2.reader;
import hydraql.shaded.fastjson2.schema.JSONSchema;
import java.util.function.Function;
import java.util.function.Supplier;
public class ObjectReader12
extends ObjectReaderAdapter {
protected final FieldReader fieldReader0;
protected final FieldReader fieldReader1;
protected final FieldReader fieldReader2;
protected final FieldReader fieldReader3;
protected final FieldReader fieldReader4;
protected final FieldReader fieldReader5;
protected final FieldReader fieldReader6;
protected final FieldReader fieldReader7;
protected final FieldReader fieldReader8;
protected final FieldReader fieldReader9;
protected final FieldReader fieldReader10;
protected final FieldReader fieldReader11;
final long hashCode0;
final long hashCode1;
final long hashCode2;
final long hashCode3;
final long hashCode4;
final long hashCode5;
final long hashCode6;
final long hashCode7;
final long hashCode8;
final long hashCode9;
final long hashCode10;
final long hashCode11;
final long hashCode0LCase;
final long hashCode1LCase;
final long hashCode2LCase;
final long hashCode3LCase;
final long hashCode4LCase;
final long hashCode5LCase;
final long hashCode6LCase;
final long hashCode7LCase;
final long hashCode8LCase;
final long hashCode9LCase;
final long hashCode10LCase;
final long hashCode11LCase;
protected ObjectReader objectReader0;
protected ObjectReader objectReader1;
protected ObjectReader objectReader2;
protected ObjectReader objectReader3;
protected ObjectReader objectReader4;
protected ObjectReader objectReader5;
protected ObjectReader objectReader6;
protected ObjectReader objectReader7;
protected ObjectReader objectReader8;
protected ObjectReader objectReader9;
protected ObjectReader objectReader10;
protected ObjectReader objectReader11;
public ObjectReader12(
Class objectClass,
String typeKey,
String typeName,
long features,
JSONSchema schema,
Supplier creator,
Function buildFunction,
FieldReader... fieldReaders
) {
super(objectClass, typeKey, typeName, features, schema, creator, buildFunction, fieldReaders);
this.fieldReader0 = fieldReaders[0];
this.fieldReader1 = fieldReaders[1];
this.fieldReader2 = fieldReaders[2];
this.fieldReader3 = fieldReaders[3];
this.fieldReader4 = fieldReaders[4];
this.fieldReader5 = fieldReaders[5];
this.fieldReader6 = fieldReaders[6];
this.fieldReader7 = fieldReaders[7];
this.fieldReader8 = fieldReaders[8];
this.fieldReader9 = fieldReaders[9];
this.fieldReader10 = fieldReaders[10];
this.fieldReader11 = fieldReaders[11];
this.hashCode0 = fieldReader0.fieldNameHash;
this.hashCode1 = fieldReader1.fieldNameHash;
this.hashCode2 = fieldReader2.fieldNameHash;
this.hashCode3 = fieldReader3.fieldNameHash;
this.hashCode4 = fieldReader4.fieldNameHash;
this.hashCode5 = fieldReader5.fieldNameHash;
this.hashCode6 = fieldReader6.fieldNameHash;
this.hashCode7 = fieldReader7.fieldNameHash;
this.hashCode8 = fieldReader8.fieldNameHash;
this.hashCode9 = fieldReader9.fieldNameHash;
this.hashCode10 = fieldReader10.fieldNameHash;
this.hashCode11 = fieldReader11.fieldNameHash;
this.hashCode0LCase = fieldReader0.fieldNameHashLCase;
this.hashCode1LCase = fieldReader1.fieldNameHashLCase;
this.hashCode2LCase = fieldReader2.fieldNameHashLCase;
this.hashCode3LCase = fieldReader3.fieldNameHashLCase;
this.hashCode4LCase = fieldReader4.fieldNameHashLCase;
this.hashCode5LCase = fieldReader5.fieldNameHashLCase;
this.hashCode6LCase = fieldReader6.fieldNameHashLCase;
this.hashCode7LCase = fieldReader7.fieldNameHashLCase;
this.hashCode8LCase = fieldReader8.fieldNameHashLCase;
this.hashCode9LCase = fieldReader9.fieldNameHashLCase;
this.hashCode10LCase = fieldReader10.fieldNameHashLCase;
this.hashCode11LCase = fieldReader11.fieldNameHashLCase;
}
@Override
public FieldReader getFieldReader(long hashCode) {
if (hashCode == hashCode0) {
return fieldReader0;
}
if (hashCode == hashCode1) {
return fieldReader1;
}
if (hashCode == hashCode2) {
return fieldReader2;
}
if (hashCode == hashCode3) {
return fieldReader3;
}
if (hashCode == hashCode4) {
return fieldReader4;
}
if (hashCode == hashCode5) {
return fieldReader5;
}
if (hashCode == hashCode6) {
return fieldReader6;
}
if (hashCode == hashCode7) {
return fieldReader7;
}
if (hashCode == hashCode8) {
return fieldReader8;
}
if (hashCode == hashCode9) {
return fieldReader9;
}
if (hashCode == hashCode10) {
return fieldReader10;
}
if (hashCode == hashCode11) {
return fieldReader11;
}
return null;
}
@Override
public FieldReader getFieldReaderLCase(long hashCode) {
if (hashCode == hashCode0LCase) {
return fieldReader0;
}
if (hashCode == hashCode1LCase) {
return fieldReader1;
}
if (hashCode == hashCode2LCase) {
return fieldReader2;
}
if (hashCode == hashCode3LCase) {
return fieldReader3;
}
if (hashCode == hashCode4LCase) {
return fieldReader4;
}
if (hashCode == hashCode5LCase) {
return fieldReader5;
}
if (hashCode == hashCode6LCase) {
return fieldReader6;
}
if (hashCode == hashCode7LCase) {
return fieldReader7;
}
if (hashCode == hashCode8LCase) {
return fieldReader8;
}
if (hashCode == hashCode9LCase) {
return fieldReader9;
}
if (hashCode == hashCode10LCase) {
return fieldReader10;
}
if (hashCode == hashCode11LCase) {
return fieldReader11;
}
return null;
}
}