Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
db.sql.api.cmd.GetterFields Maven / Gradle / Ivy
package db.sql.api.cmd;
import db.sql.api.Getter;
/**
* GetterField 数组
*/
public final class GetterFields {
@SafeVarargs
public static GetterField[] of(Getter... getters) {
return of(1, getters);
}
@SafeVarargs
public static GetterField[] of(int storey, Getter... getters) {
GetterField[] getterFields = new GetterField[getters.length];
for (int i = 0; i < getters.length; i++) {
getterFields[i] = GetterField.create(getters[i], storey);
}
return getterFields;
}
public static GetterField[] merge(GetterField[] arr1, GetterField[] arr2) {
GetterField[] getterFields = new GetterField[arr1.length + arr2.length];
System.arraycopy(arr1, 0, getterFields, 0, arr1.length);
System.arraycopy(arr2, 0, getterFields, arr1.length, arr2.length);
return getterFields;
}
public static GetterField[] of(Getter getter1) {
return new GetterField[]{GetterField.create(getter1)};
}
public static GetterField[] of(Getter getter1, int storey1) {
return new GetterField[]{GetterField.create(getter1, storey1)};
}
public static GetterField[] of(Getter getter1, Getter getter2) {
return new GetterField[]{GetterField.create(getter1), GetterField.create(getter2)};
}
public static GetterField[] of(Getter getter1, int storey1, Getter getter2, int storey2) {
return new GetterField[]{GetterField.create(getter1, storey1), GetterField.create(getter2, storey2)};
}
public static GetterField[] of(Getter getter1, Getter getter2, Getter getter3) {
return new GetterField[]{GetterField.create(getter1), GetterField.create(getter2), GetterField.create(getter3)};
}
public static GetterField[] of(Getter getter1, int storey1, Getter getter2, int storey2, Getter getter3, int storey3) {
return new GetterField[]{GetterField.create(getter1, storey1), GetterField.create(getter2, storey2), GetterField.create(getter3, storey3)};
}
public static GetterField[] of(Getter getter1, Getter getter2, Getter getter3, Getter getter4) {
return new GetterField[]{GetterField.create(getter1), GetterField.create(getter2), GetterField.create(getter3), GetterField.create(getter4)};
}
public static GetterField[] of(Getter getter1, int storey1, Getter getter2, int storey2, Getter getter3, int storey3, Getter getter4, int storey4) {
return new GetterField[]{GetterField.create(getter1, storey1), GetterField.create(getter2, storey2), GetterField.create(getter3, storey3), GetterField.create(getter4, storey4)};
}
public static GetterField[] of(Getter getter1, Getter getter2, Getter getter3, Getter getter4, Getter getter5) {
return new GetterField[]{GetterField.create(getter1), GetterField.create(getter2), GetterField.create(getter3), GetterField.create(getter4), GetterField.create(getter5)};
}
public static GetterField[] of(Getter getter1, int storey1, Getter getter2, int storey2, Getter getter3, int storey3, Getter getter4, int storey4, Getter getter5, int storey5) {
return new GetterField[]{GetterField.create(getter1, storey1), GetterField.create(getter2, storey2), GetterField.create(getter3, storey3), GetterField.create(getter4, storey4), GetterField.create(getter5, storey5)};
}
public static GetterField[] of(Getter getter1, Getter getter2, Getter getter3, Getter getter4, Getter getter5, Getter getter6) {
return new GetterField[]{GetterField.create(getter1), GetterField.create(getter2), GetterField.create(getter3), GetterField.create(getter4), GetterField.create(getter5), GetterField.create(getter6)};
}
public static GetterField[] of(Getter getter1, int storey1, Getter getter2, int storey2, Getter getter3, int storey3, Getter getter4, int storey4, Getter getter5, int storey5, Getter getter6, int storey6) {
return new GetterField[]{GetterField.create(getter1, storey1), GetterField.create(getter2, storey2), GetterField.create(getter3, storey3), GetterField.create(getter4, storey4), GetterField.create(getter5, storey5), GetterField.create(getter6, storey6)};
}
public static GetterField[] of(Getter getter1, Getter getter2, Getter getter3, Getter getter4, Getter getter5, Getter getter6, Getter getter7) {
return new GetterField[]{GetterField.create(getter1), GetterField.create(getter2), GetterField.create(getter3), GetterField.create(getter4), GetterField.create(getter5), GetterField.create(getter6), GetterField.create(getter7)};
}
public static GetterField[] of(Getter getter1, int storey1, Getter getter2, int storey2, Getter getter3, int storey3, Getter getter4, int storey4, Getter getter5, int storey5, Getter getter6, int storey6, Getter getter7, int storey7) {
return new GetterField[]{GetterField.create(getter1, storey1), GetterField.create(getter2, storey2), GetterField.create(getter3, storey3), GetterField.create(getter4, storey4), GetterField.create(getter5, storey5), GetterField.create(getter6, storey6), GetterField.create(getter7, storey7)};
}
public static GetterField[] of(Getter getter1, Getter getter2, Getter getter3, Getter getter4, Getter getter5, Getter getter6, Getter getter7, Getter getter8) {
return new GetterField[]{GetterField.create(getter1), GetterField.create(getter2), GetterField.create(getter3), GetterField.create(getter4), GetterField.create(getter5), GetterField.create(getter6), GetterField.create(getter7), GetterField.create(getter8)};
}
public static GetterField[] of(Getter getter1, int storey1, Getter getter2, int storey2, Getter getter3, int storey3, Getter getter4, int storey4, Getter getter5, int storey5, Getter getter6, int storey6, Getter getter7, int storey7, Getter getter8, int storey8) {
return new GetterField[]{GetterField.create(getter1, storey1), GetterField.create(getter2, storey2), GetterField.create(getter3, storey3), GetterField.create(getter4, storey4), GetterField.create(getter5, storey5), GetterField.create(getter6, storey6), GetterField.create(getter7, storey7), GetterField.create(getter8, storey8)};
}
public static GetterField[] of(Getter getter1, Getter getter2, Getter getter3, Getter getter4, Getter getter5, Getter getter6, Getter getter7, Getter getter8, Getter getter9) {
return new GetterField[]{GetterField.create(getter1), GetterField.create(getter2), GetterField.create(getter3), GetterField.create(getter4), GetterField.create(getter5), GetterField.create(getter6), GetterField.create(getter7), GetterField.create(getter8), GetterField.create(getter9)};
}
public static GetterField[] of(Getter getter1, int storey1, Getter getter2, int storey2, Getter getter3, int storey3, Getter getter4, int storey4, Getter getter5, int storey5, Getter getter6, int storey6, Getter getter7, int storey7, Getter getter8, int storey8, Getter getter9, int storey9) {
return new GetterField[]{GetterField.create(getter1, storey1), GetterField.create(getter2, storey2), GetterField.create(getter3, storey3), GetterField.create(getter4, storey4), GetterField.create(getter5, storey5), GetterField.create(getter6, storey6), GetterField.create(getter7, storey7), GetterField.create(getter8, storey8), GetterField.create(getter9, storey9)};
}
public static GetterField[] of(Getter getter1, Getter getter2, Getter getter3, Getter getter4, Getter getter5, Getter getter6, Getter getter7, Getter getter8, Getter getter9, Getter getter10) {
return new GetterField[]{GetterField.create(getter1), GetterField.create(getter2), GetterField.create(getter3), GetterField.create(getter4), GetterField.create(getter5), GetterField.create(getter6), GetterField.create(getter7), GetterField.create(getter8), GetterField.create(getter9), GetterField.create(getter10)};
}
public static GetterField[] of(Getter getter1, int storey1, Getter getter2, int storey2, Getter getter3, int storey3, Getter getter4, int storey4, Getter getter5, int storey5, Getter getter6, int storey6, Getter getter7, int storey7, Getter getter8, int storey8, Getter getter9, int storey9, Getter getter10, int storey10) {
return new GetterField[]{GetterField.create(getter1, storey1), GetterField.create(getter2, storey2), GetterField.create(getter3, storey3), GetterField.create(getter4, storey4), GetterField.create(getter5, storey5), GetterField.create(getter6, storey6), GetterField.create(getter7, storey7), GetterField.create(getter8, storey8), GetterField.create(getter9, storey9), GetterField.create(getter10, storey10)};
}
public static void main(String[] args) {
GetterField[] arr = GetterFields.merge(GetterFields.of(ColumnField::getColumnName), GetterFields.of(ColumnField::getColumnName, ColumnField::getColumnName));
System.out.println(arr.length);
System.out.println(arr[arr.length - 1]);
}
}