mirror of
https://github.com/collinsmith/riiablo.git
synced 2025-07-04 15:27:30 +07:00
Reformatted code
This commit is contained in:
@ -29,6 +29,15 @@ class TableCodeGenerator extends CodeGenerator {
|
|||||||
;
|
;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
MethodSpec constructor(SchemaElement schemaElement) {
|
||||||
|
Schema config = schemaElement.annotation;
|
||||||
|
return MethodSpec
|
||||||
|
.constructorBuilder()
|
||||||
|
.addStatement("super($T.class, $L, $Lf)", // does not append "f" automatically for float literals
|
||||||
|
schemaElement.element, config.initialCapacity(), config.loadFactor())
|
||||||
|
.build();
|
||||||
|
}
|
||||||
|
|
||||||
MethodSpec newRecord(SchemaElement schemaElement) {
|
MethodSpec newRecord(SchemaElement schemaElement) {
|
||||||
TableElement tableElement = schemaElement.tableElement;
|
TableElement tableElement = schemaElement.tableElement;
|
||||||
return MethodSpec
|
return MethodSpec
|
||||||
@ -40,15 +49,6 @@ class TableCodeGenerator extends CodeGenerator {
|
|||||||
.build();
|
.build();
|
||||||
}
|
}
|
||||||
|
|
||||||
MethodSpec constructor(SchemaElement schemaElement) {
|
|
||||||
Schema config = schemaElement.annotation;
|
|
||||||
return MethodSpec
|
|
||||||
.constructorBuilder()
|
|
||||||
.addStatement("super($T.class, $L, $Lf)", // does not append "f" automatically for float literals
|
|
||||||
schemaElement.element, config.initialCapacity(), config.loadFactor())
|
|
||||||
.build();
|
|
||||||
}
|
|
||||||
|
|
||||||
MethodSpec offset(SchemaElement schemaElement) {
|
MethodSpec offset(SchemaElement schemaElement) {
|
||||||
Schema config = schemaElement.annotation;
|
Schema config = schemaElement.annotation;
|
||||||
TableElement tableElement = schemaElement.tableElement;
|
TableElement tableElement = schemaElement.tableElement;
|
||||||
|
Reference in New Issue
Block a user