IntSequenceSeries extends IntBaseSeries { @Override public int size() { return lastExclusive - first; } IntSequenceSeries(int first, int lastExclusive); @Override int getInt(int index); @Override void copyToInt(int[] to, int fromOffset, int toOffset, int len); @Override IntSeries materializeInt(); @Override IntSeries rangeOpenClosedInt(int fromInclusive, int toExclusive); @Override IntSeries headInt(int len); @Override IntSeries tailInt(int len); @Override int size(); @Override int max(); @Override int min(); @Override long sum(); @Override double average(); @Override double median();  }
@Test public void testSize() { IntSequenceSeries s1 = new IntSequenceSeries(-1, 5); assertEquals(6, s1.size()); IntSequenceSeries s2 = new IntSequenceSeries(1, 5); assertEquals(4, s2.size()); }