code: public static MappeableContainer rangeOfOnes(final int start, final int last) {
      final int arrayContainerOverRunThreshold = 2;
      final int cardinality = last - start;
  
      if (cardinality <= arrayContainerOverRunThreshold) {
        return new MappeableArrayContainer(start, last);
      }
      return new MappeableRunContainer(start, last);
    }
docs: Create a container initialized with a range of consecutive values
  
  @param start first index
  @param last last index (range is exclusive)
  @return a new container initialized with the specified values