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 iBounds_findsMinMax() {
          FastXYSeries series = mock(FastXYSeries.class);
          when(series.size()).thenReturn(3);
          when(series.getX(0)).thenReturn(0);
          when(series.getX(1)).thenReturn(1);
          when(series.getX(2)).thenReturn(2);
  
          Region result = SeriesUtils.iBounds(series, new RectRegion(0, 1, 0, 1));
          assertEquals(0, result.getMin().intValue());
          assertEquals(1, result.getMax().intValue());
  
          // test with nulls:
          when(series.size()).thenReturn(6);
          when(series.getX(0)).thenReturn(0);
          when(series.getX(1)).thenReturn(0.5);
          when(series.getX(2)).thenReturn(null);
          when(series.getX(3)).thenReturn(null);
          when(series.getX(4)).thenReturn(1);
          when(series.getX(5)).thenReturn(3);
  
          result = SeriesUtils.iBounds(series, new RectRegion(0, 1, 0, 1));
          assertEquals(0, result.getMin().intValue());
          assertEquals(4, result.getMax().intValue());
      }
test_case.class_method_signature: SeriesUtilsTest.iBounds_findsMinMax()
test_case.full_signature: @Test public void iBounds_findsMinMax()
test_case.identifier: iBounds_findsMinMax
test_case.invocations: mock thenReturn when size thenReturn when getX thenReturn when getX thenReturn when getX iBounds assertEquals intValue getMin assertEquals intValue getMax thenReturn when size thenReturn when getX thenReturn when getX thenReturn when getX thenReturn when getX thenReturn when getX thenReturn when getX iBounds assertEquals intValue getMin assertEquals intValue getMax
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void iBounds_findsMinMax()
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: public static Region iBounds(XYSeries series, RectRegion visibleBounds) {
          final float step = series.size() >= 200 ? 50 : 1;
          final int iBoundsMin = iBoundsMin(series, visibleBounds.getMinX().doubleValue(), step);
          final int iBoundsMax = iBoundsMax(series, visibleBounds.getMaxX().doubleValue(), step);
          return new Region(iBoundsMin, iBoundsMax);
      }
focal_method.class_method_signature: SeriesUtils.iBounds(XYSeries series, RectRegion visibleBounds)
focal_method.full_signature: public static Region iBounds(XYSeries series, RectRegion visibleBounds)
focal_method.identifier: iBounds
focal_method.invocations: size iBoundsMin doubleValue getMinX iBoundsMax doubleValue getMaxX
focal_method.modifiers: public static
focal_method.parameters: (XYSeries series, RectRegion visibleBounds)
focal_method.return: Region
focal_method.signature: Region iBounds(XYSeries series, RectRegion visibleBounds)