code: public static IndexFilter range(final int minIndex, final int maxIndex) {
          assert minIndex<=maxIndex : "Invalid range. min <= max expected";
          return new RangeIndexFilter(minIndex, maxIndex, "range[" + minIndex + ".." + maxIndex + "]");
      }
docs: # Creates a {@link IndexFilter} which {@linkplain IndexFilter#filter(int)} returns} {@code true} if called with one of the indices within the closed range [{@code minIndex}, {@code maxIndex}].
  
  *Caution*: {@code minIndex} <= {@code maxIndex} expected, otherwise an exception will thrown.
  
  Example:
  ```java
  {@link IndexFilter} idxPred=PredefinedIndexFilters.range(1,3);
  idxPred.filter(1); // --> true
  idxPred.filter(2); // --> true
  idxPred.filter(3); // --> true
  
  // but
  idxPred.filter(0); // --> false
  idxPred.filter(4); // --> false
  ```
  
  @param minIndex min valid index
  @param maxIndex max valid index
  
  @return an {@link IndexFilter}