All Downloads are FREE. Search and download functionalities are using the official Maven repository.

br.com.objectos.rio.boot.WorksheetEtoXls Maven / Gradle / Ivy

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 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;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy