DatasetSplitSet implements IDatasetSplitSet<D> { @Override public List<D> getFolds(final int splitId) { return Collections.unmodifiableList(this.splits.get(splitId)); } DatasetSplitSet();  DatasetSplitSet(final IDatasetSplitSet<D> set);  DatasetSplitSet(final List<List<D>> splits); void addSplit(final List<D> split); @Override int getNumberOfSplits(); @Override int getNumberOfFoldsPerSplit(); int getNumberOfFoldsForSplit(final int pos); @Override List<D> getFolds(final int splitId);  }
@Test public void testGetFolds() { for (int i = 0; i < this.splitSet.getNumberOfSplits(); i++) { assertEquals("The folds of split " + i + " do not match.", this.testSplits.get(i), this.splitSet.getFolds(i)); } }