br.com.objectos.rio.boot.WorksheetEtoXls Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of boot Show documentation
Show all versions of boot Show documentation
Instalação via Rede Objectos. A PXE server.
The newest version!
package br.com.objectos.rio.boot;
import br.com.objectos.core.util.ImmutableList;
import br.com.objectos.way.xls.RowReader;
import br.com.objectos.way.xls.WorkbookReader;
import java.util.Iterator;
import javax.annotation.Generated;
@Generated("br.com.objectos.way.xls.WorksheetCompiler")
final class WorksheetEtoXls extends EtoXls {
private final String name;
private final String hwAddressValue;
private final String ipAddressValue;
public WorksheetEtoXls(String name, String hwAddressValue, String ipAddressValue) {
super();
this.name = name;
this.hwAddressValue = hwAddressValue;
this.ipAddressValue = ipAddressValue;
}
static void readInto(WorkbookReader wb, ImmutableList.Builder super WorksheetEtoXls> list) {
Iterator iterator = wb.openWorksheet("ETO")
.skipFirstRows(1)
.iterator();
while (iterator.hasNext()) {
RowReader ___row___ = iterator.next();
String name = ___row___.cell(0).stringValue();
String hwAddressValue = ___row___.cell(1).stringValue();
String ipAddressValue = ___row___.cell(2).stringValue();
list.add(new WorksheetEtoXls(name, hwAddressValue, ipAddressValue));
}
}
@Override
public String name() {
return name;
}
@Override
String hwAddressValue() {
return hwAddressValue;
}
@Override
String ipAddressValue() {
return ipAddressValue;
}
}