TsVariableSelection { public Item<T>[] elements() { return Jdk6.Collections.toArray(m_regs, Item.class); } TsVariableSelection(); boolean isEmpty(); void add(T item, int pos); void clear(); List<DataBlock> data(TsDomain domain); Item<T>[] elements(); Item<T> get(int idx); int getItemsCount(); int[] getPositions(); int getVariablesCount(); Matrix matrix(TsDomain domain); DataBlock sum(DataBlock coeffs, TsDomain domain);  }
@Test public void testItems() { TsVariableList list=new TsVariableList(); TsVariableSelection<ICalendarVariable> sel = list.select(ICalendarVariable.class); TsVariableSelection.Item<ICalendarVariable>[] elements = sel.elements(); }