test_class.declarator: LINEAR = Arrays.asList(new Number[]{ 1, 2, 3, 4 ,5 , 6, 7, 8})
test_class.modifier: final
test_class.original_string: final List<Number> LINEAR = Arrays.asList(new Number[]{ 1, 2, 3, 4 ,5 , 6, 7, 8});
test_class.type: List<Number>
test_class.var_name: LINEAR
test_class.declarator: LINEAR_INVERSE = Arrays.asList(new Number[]{ 8, 7, 6, 5, 4, 3, 2, 1})
test_class.modifier: final
test_class.original_string: final List<Number> LINEAR_INVERSE = Arrays.asList(new Number[]{ 8, 7, 6, 5, 4, 3, 2, 1});
test_class.type: List<Number>
test_class.var_name: LINEAR_INVERSE
test_class.declarator: ZIG_ZAG = Arrays.asList(new Number[]{1, 10, 1, 10, 1, 10, 1, 10})
test_class.modifier: final
test_class.original_string: final List<Number> ZIG_ZAG = Arrays.asList(new Number[]{1, 10, 1, 10, 1, 10, 1, 10});
test_class.type: List<Number>
test_class.var_name: ZIG_ZAG
test_class.declarator: NULLS = Arrays.asList(new Number[]{null, 2, null, 4, null, 0, -1, null})
test_class.modifier: final
test_class.original_string: final List<Number> NULLS = Arrays.asList(new Number[]{null, 2, null, 4, null, 0, -1, null});
test_class.type: List<Number>
test_class.var_name: NULLS
test_class.declarator: SINGLE_VALUE = Arrays.asList(new Number[]{3})
test_class.modifier: final
test_class.original_string: final List<Number> SINGLE_VALUE = Arrays.asList(new Number[]{3});
test_class.type: List<Number>
test_class.var_name: SINGLE_VALUE
test_class.declarator: SINGLE_VALUE_NULL = Arrays.asList(new Number[]{null})
test_class.modifier: final
test_class.original_string: final List<Number> SINGLE_VALUE_NULL = Arrays.asList(new Number[]{null});
test_class.type: List<Number>
test_class.var_name: SINGLE_VALUE_NULL
test_class.declarator: EMPTY = new ArrayList<>()
test_class.modifier: final
test_class.original_string: final List<Number> EMPTY = new ArrayList<>();
test_class.type: List<Number>
test_class.var_name: EMPTY
test_class.file: androidplot-core/src/test/java/com/androidplot/util/SeriesUtilsTest.java
test_class.identifier: SeriesUtilsTest
test_case.body: @Test
      public void iBoundsMax_findsMax() {
          XYSeries s1 = new SimpleXYSeries(
                  Arrays.asList(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12),
                  Arrays.asList(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12),
                  "s1");
  
          assertEquals(12, SeriesUtils.iBoundsMax(s1, 12, 1));
          assertEquals(6, SeriesUtils.iBoundsMax(s1, 6, 1));
          assertEquals(12, SeriesUtils.iBoundsMax(s1, 12, 1));
  
          // now test with null vals:
          XYSeries s2 = new SimpleXYSeries(
                  Arrays.asList(null, 1, 2, null, null, 5, 6, 7, 8, null, 10, 11, null),
                  Arrays.asList(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12),
                  "s2");
  
          assertEquals(1, SeriesUtils.iBoundsMax(s2, 0, 1));
          assertEquals(5, SeriesUtils.iBoundsMax(s2, 3, 1));
          assertEquals(12, SeriesUtils.iBoundsMax(s2, 12, 1));
  
          // test with a higher step value:
          assertEquals(1, SeriesUtils.iBoundsMax(s2, 0, 5));
          assertEquals(5, SeriesUtils.iBoundsMax(s2, 3, 5));
          assertEquals(12, SeriesUtils.iBoundsMax(s2, 12, 5));
      }
test_case.class_method_signature: SeriesUtilsTest.iBoundsMax_findsMax()
test_case.full_signature: @Test public void iBoundsMax_findsMax()
test_case.identifier: iBoundsMax_findsMax
test_case.invocations: asList asList assertEquals iBoundsMax assertEquals iBoundsMax assertEquals iBoundsMax asList asList assertEquals iBoundsMax assertEquals iBoundsMax assertEquals iBoundsMax assertEquals iBoundsMax assertEquals iBoundsMax assertEquals iBoundsMax
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void iBoundsMax_findsMax()
focal_class.file: androidplot-core/src/main/java/com/androidplot/util/SeriesUtils.java
focal_class.identifier: SeriesUtils
focal_class.class_method_signature: SeriesUtils.minMax(List<XYSeries> seriesList)
focal_class.full_signature: public static RectRegion minMax(List<XYSeries> seriesList)
focal_class.identifier: minMax
focal_class.modifiers: public static
focal_class.parameters: (List<XYSeries> seriesList)
focal_class.return: RectRegion
focal_class.signature: RectRegion minMax(List<XYSeries> seriesList)
focal_class.class_method_signature: SeriesUtils.minMax(XYSeries... seriesList)
focal_class.full_signature: public static RectRegion minMax(XYSeries... seriesList)
focal_class.identifier: minMax
focal_class.modifiers: public static
focal_class.parameters: (XYSeries... seriesList)
focal_class.return: RectRegion
focal_class.signature: RectRegion minMax(XYSeries... seriesList)
focal_class.class_method_signature: SeriesUtils.minMaxX(XYSeries... seriesList)
focal_class.full_signature: public static Region minMaxX(XYSeries... seriesList)
focal_class.identifier: minMaxX
focal_class.modifiers: public static
focal_class.parameters: (XYSeries... seriesList)
focal_class.return: Region
focal_class.signature: Region minMaxX(XYSeries... seriesList)
focal_class.class_method_signature: SeriesUtils.minMaxY(XYSeries... seriesList)
focal_class.full_signature: public static Region minMaxY(XYSeries... seriesList)
focal_class.identifier: minMaxY
focal_class.modifiers: public static
focal_class.parameters: (XYSeries... seriesList)
focal_class.return: Region
focal_class.signature: Region minMaxY(XYSeries... seriesList)
focal_class.class_method_signature: SeriesUtils.minMax(XYConstraints constraints, List<XYSeries> seriesList)
focal_class.full_signature: public static RectRegion minMax(XYConstraints constraints, List<XYSeries> seriesList)
focal_class.identifier: minMax
focal_class.modifiers: public static
focal_class.parameters: (XYConstraints constraints, List<XYSeries> seriesList)
focal_class.return: RectRegion
focal_class.signature: RectRegion minMax(XYConstraints constraints, List<XYSeries> seriesList)
focal_class.class_method_signature: SeriesUtils.minMax(XYConstraints constraints, XYSeries... seriesArray)
focal_class.full_signature: public static RectRegion minMax(XYConstraints constraints, XYSeries... seriesArray)
focal_class.identifier: minMax
focal_class.modifiers: public static
focal_class.parameters: (XYConstraints constraints, XYSeries... seriesArray)
focal_class.return: RectRegion
focal_class.signature: RectRegion minMax(XYConstraints constraints, XYSeries... seriesArray)
focal_class.class_method_signature: SeriesUtils.minMax(Region bounds, List<Number>... lists)
focal_class.full_signature: public static Region minMax(Region bounds, List<Number>... lists)
focal_class.identifier: minMax
focal_class.modifiers: public static
focal_class.parameters: (Region bounds, List<Number>... lists)
focal_class.return: Region
focal_class.signature: Region minMax(Region bounds, List<Number>... lists)
focal_class.class_method_signature: SeriesUtils.iBounds(XYSeries series, RectRegion visibleBounds)
focal_class.full_signature: public static Region iBounds(XYSeries series, RectRegion visibleBounds)
focal_class.identifier: iBounds
focal_class.modifiers: public static
focal_class.parameters: (XYSeries series, RectRegion visibleBounds)
focal_class.return: Region
focal_class.signature: Region iBounds(XYSeries series, RectRegion visibleBounds)
focal_class.class_method_signature: SeriesUtils.iBoundsMax(XYSeries series, double visibleMax, float step)
focal_class.full_signature: protected static int iBoundsMax(XYSeries series, double visibleMax, float step)
focal_class.identifier: iBoundsMax
focal_class.modifiers: protected static
focal_class.parameters: (XYSeries series, double visibleMax, float step)
focal_class.return: int
focal_class.signature: int iBoundsMax(XYSeries series, double visibleMax, float step)
focal_class.class_method_signature: SeriesUtils.iBoundsMin(XYSeries series, double visibleMin, float step)
focal_class.full_signature: protected static int iBoundsMin(XYSeries series, double visibleMin, float step)
focal_class.identifier: iBoundsMin
focal_class.modifiers: protected static
focal_class.parameters: (XYSeries series, double visibleMin, float step)
focal_class.return: int
focal_class.signature: int iBoundsMin(XYSeries series, double visibleMin, float step)
focal_class.class_method_signature: SeriesUtils.getNullRegion(XYSeries series, int index)
focal_class.full_signature: protected static Region getNullRegion(XYSeries series, int index)
focal_class.identifier: getNullRegion
focal_class.modifiers: protected static
focal_class.parameters: (XYSeries series, int index)
focal_class.return: Region
focal_class.signature: Region getNullRegion(XYSeries series, int index)
focal_class.class_method_signature: SeriesUtils.minMax(List<Number>... lists)
focal_class.full_signature: public static Region minMax(List<Number>... lists)
focal_class.identifier: minMax
focal_class.modifiers: public static
focal_class.parameters: (List<Number>... lists)
focal_class.return: Region
focal_class.signature: Region minMax(List<Number>... lists)
focal_class.class_method_signature: SeriesUtils.getXYOrder(XYSeries series)
focal_class.full_signature: public static OrderedXYSeries.XOrder getXYOrder(XYSeries series)
focal_class.identifier: getXYOrder
focal_class.modifiers: public static
focal_class.parameters: (XYSeries series)
focal_class.return: OrderedXYSeries.XOrder
focal_class.signature: OrderedXYSeries.XOrder getXYOrder(XYSeries series)
focal_method.body: protected static int iBoundsMax(XYSeries series, double visibleMax, float step) {
          int max = series.size() - 1;
          final int seriesSize = series.size();
          final int steps = (int) Math.ceil(seriesSize / step);
          for (int stepIndex = steps; stepIndex >= 0; stepIndex--) {
              final int i = stepIndex * (int) step;
              for (int ii = 0; ii < step; ii++) {
                  final int iii = i + ii;
                  if(iii < seriesSize) {
                      final Number thisX = series.getX(iii);
                      if (thisX != null) {
                          final double thisDouble = thisX.doubleValue();
                          if (thisDouble > visibleMax) {
                              // this is the smallest non-null value in this block, so skip
                              // to the next block:
                              max = iii;
                              break;
                          } else if (thisDouble == visibleMax) {
                              return iii;
                          } else {
                              return max;
                          }
                      }
                  }
              }
          }
          return max;
      }
focal_method.class_method_signature: SeriesUtils.iBoundsMax(XYSeries series, double visibleMax, float step)
focal_method.full_signature: protected static int iBoundsMax(XYSeries series, double visibleMax, float step)
focal_method.identifier: iBoundsMax
focal_method.invocations: size size ceil getX doubleValue
focal_method.modifiers: protected static
focal_method.parameters: (XYSeries series, double visibleMax, float step)
focal_method.return: int
focal_method.signature: int iBoundsMax(XYSeries series, double visibleMax, float step)