@Test public void linearList6() throws Exception { ListNumber list = ListNumbers.linearList(1000, -10, 101); assertThat(list.getDouble(0), equalTo(1000.0)); assertThat(list.getDouble(35), equalTo(650.0)); assertThat(list.getDouble(50), equalTo(500.0)); assertThat(list.getDouble(100), equalTo(0.0)); }
public static ListNumber linearList(final double initialValue, final double increment, final int size) { if (size <= 0) { throw new IllegalArgumentException("Size must be positive (was " + size + " )"); } return new LinearListDouble(size, initialValue, increment); }
ListNumbers { public static ListNumber linearList(final double initialValue, final double increment, final int size) { if (size <= 0) { throw new IllegalArgumentException("Size must be positive (was " + size + " )"); } return new LinearListDouble(size, initialValue, increment); } }
ListNumbers { public static ListNumber linearList(final double initialValue, final double increment, final int size) { if (size <= 0) { throw new IllegalArgumentException("Size must be positive (was " + size + " )"); } return new LinearListDouble(size, initialValue, increment); }  }
ListNumbers { public static ListNumber linearList(final double initialValue, final double increment, final int size) { if (size <= 0) { throw new IllegalArgumentException("Size must be positive (was " + size + " )"); } return new LinearListDouble(size, initialValue, increment); }  static SortedListView sortedView(ListNumber values); static SortedListView sortedView(ListNumber values, ListInt indexes); static int binarySearchValueOrLower(ListNumber values, double value); static int binarySearchValueOrHigher(ListNumber values, double value); static ListNumber linearListFromRange(final double minValue, final double maxValue, final int size); static ListNumber linearList(final double initialValue, final double increment, final int size); static boolean isLinear(ListNumber listNumber); static ListNumber toListNumber(Object primitiveArray); static ListNumber listView(ListNumber list, ListInt indexes); }
ListNumbers { public static ListNumber linearList(final double initialValue, final double increment, final int size) { if (size <= 0) { throw new IllegalArgumentException("Size must be positive (was " + size + " )"); } return new LinearListDouble(size, initialValue, increment); }  static SortedListView sortedView(ListNumber values); static SortedListView sortedView(ListNumber values, ListInt indexes); static int binarySearchValueOrLower(ListNumber values, double value); static int binarySearchValueOrHigher(ListNumber values, double value); static ListNumber linearListFromRange(final double minValue, final double maxValue, final int size); static ListNumber linearList(final double initialValue, final double increment, final int size); static boolean isLinear(ListNumber listNumber); static ListNumber toListNumber(Object primitiveArray); static ListNumber listView(ListNumber list, ListInt indexes);  }