1 /* 2 * Copyright (C) 2010, Google Inc. 3 * Copyright (C) 2008-2009, Johannes E. Schindelin <johannes.schindelin@gmx.de> and others 4 * 5 * This program and the accompanying materials are made available under the 6 * terms of the Eclipse Distribution License v. 1.0 which is available at 7 * https://www.eclipse.org/org/documents/edl-v10.php. 8 * 9 * SPDX-License-Identifier: BSD-3-Clause 10 */ 11 12 package org.eclipse.jgit.diff; 13 14 /** 15 * Arbitrary sequence of elements. 16 * <p> 17 * A sequence of elements is defined to contain elements in the index range 18 * <code>[0, {@link #size()})</code>, like a standard Java List implementation. 19 * Unlike a List, the members of the sequence are not directly obtainable. 20 * <p> 21 * Implementations of Sequence are primarily intended for use in content 22 * difference detection algorithms, to produce an 23 * {@link org.eclipse.jgit.diff.EditList} of {@link org.eclipse.jgit.diff.Edit} 24 * instances describing how two Sequence instances differ. 25 * <p> 26 * To be compared against another Sequence of the same type, a supporting 27 * {@link org.eclipse.jgit.diff.SequenceComparator} must also be supplied. 28 */ 29 public abstract class Sequence { 30 /** @return total number of items in the sequence. */ 31 /** 32 * Get size 33 * 34 * @return size 35 */ 36 public abstract int size(); 37 }