Package de.justi.yagw2api.gw2stats

Examples of de.justi.yagw2api.gw2stats.IAPIStateDTO


    return 7;
  }

  @Override
  public Object getValueAt(int rowIndex, int columnIndex) {
    final IAPIStateDTO state;
    if (this.states != null) {
      final SortedMap<String, IAPIStateDTO> statesMap = Maps.newTreeMap();
      statesMap.putAll(this.states);
      final List<String> keys = new ArrayList<String>(statesMap.keySet());
      checkState(rowIndex >= 0);
      checkState(rowIndex < keys.size());
      state = statesMap.get(keys.get(rowIndex));
      if (state != null) {
        switch (columnIndex) {
          case 0:
            return keys.get(rowIndex);
          case 1:
            return state.getStatus();
          case 2:
            if (state.getDescription().isPresent()) {
              return state.getDescription().get().getDescription();
            } else {
              return "";
            }
          case 3:
            return state.getPing();
          case 4:
            return state.getRetrieve();
          case 5:
            return state.getRecords();
          case 6:
            return state.getTime();
          default:
            return null;
        }
      } else {
        return null;
View Full Code Here

TOP

Related Classes of de.justi.yagw2api.gw2stats.IAPIStateDTO

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.