components/src/test/java/eu/internetofus/common/components/service/WeNetServiceSimulatorMocker.java
/**
   * Return the position of the data associated into an identifier.
   *
   * @param id identifier of the element to get.
   *
   * @return the index of the element in the data or {@code -1} if it is not
   *         defined.
   */
Return the position of the data associated into an identifier.
@param id identifier of the element to get.

@return the index of the element in the data or  -1 if it is not
defined.
Return the position of the data associated into an identifier . @param id identifier of the element to get . @return the index of the element in the data or - 1 if it is not defined .
protected int indexOf(final String id) {
    final var max = this.data.size();
    for (var i = 0; i < max; i++) {
      final var element = this.data.get(i);
      if (id.equals(element.app.appId)) {
        return i;
      }
    }
    return -1;
  }
protected int indexOf ( final String id ) { final var max = this . data . size ( ) ; for ( var i = 0 ; i < max ; i ++ ) { final var element = this . data . get ( i ) ; if ( id . equals ( element . app . appId ) ) { return i ; } } return - 1 ; }
Return the position of the data associated into an identifier.
Return the position of the data associated into an identifier .