1 /*******************************************************************************
2 * Copyright (c) 2010 Association for Decentralized Information Management in
4 * All rights reserved. This program and the accompanying materials
5 * are made available under the terms of the Eclipse Public License v1.0
6 * which accompanies this distribution, and is available at
7 * http://www.eclipse.org/legal/epl-v10.html
10 * VTT Technical Research Centre of Finland - initial API and implementation
11 *******************************************************************************/
12 package org.simantics.databoard.file;
15 import java.io.IOException;
16 import java.util.List;
18 import org.simantics.databoard.binding.Binding;
21 * ListFile a {@link List} view to a random access file.
24 * - {@link IOException}s are wrapped around {@link RuntimeIOException}.
25 * - The use of this class is not multi-thread safe.
27 * @author Toni Kalajainen <toni.kalajainen@vtt.fi>
29 public interface IFileList<T> extends List<T> {
39 * Get class-data type binding
46 * Removes from this list all of the elements whose index is between
47 * <code>fromIndex</code>, inclusive, and <code>toIndex</code>, exclusive.
48 * Shifts any succeeding elements to the left (reduces their index). This
49 * call shortens the List by <code>(toIndex - fromIndex)</code> elements.
50 * (If <code>toIndex==fromIndex</code>, this operation has no effect.)<p>
52 * @param fromIndex the index of the first element to removed.
53 * @param toIndex index after last element to be removed (exculsive).
55 * @throws UnsupportedOperationException if the <code>remove</code> method is
56 * not supported by this list.
57 * @throws IndexOutOfBoundsException if the index is out of range (index
58 * < 0 || index + count >= size()).
60 void removeRange(int fromIndex, int toIndex);