code: public void setVersion(String value) {
          clear();
          
          if (value == null || value.length() == 0) {
              return;
          }
          
          String pcs[] = value.split("\\.", 4);
          int len = Math.min(pcs.length, 4);
          
          for (int i = 0; i < len; i++) {
              ver[i] = Long.parseLong(pcs[i]);
          }
      }
docs: Set version components from input value.
  
  @param value Input value.