package sds.classfile;

/**
 * This interface is for array of {@link Info <code>Info</code>}.
 * @author inagaki
 * @param <T> type extends {@link Info <code>Info</code>}
 */
public interface ArrayInfo<T extends Info> {

	/**
	 * returns size of array.
	 * @return size
	 */
	abstract int size();

	/**
	 * adds element to array.
	 * @param index index of array.
	 * @param element element
	 */
	abstract void add(int index, T element);

	/**
	 * returns element of array.
	 * @param index index of array.
	 * @return element
	 */
	abstract T get(int index);

	/**
	 * returns array.
	 * @return array
	 */
	abstract T[] getAll();
}

@@ -17,16 +17,17 @@
 sfile;%0A%0A
+%0A
 /**%0A * T
@@ -214,17 +214,16 @@
 Info%3E %7B%0A
-%0A
 %09/**%0A%09 *
@@ -434,200 +434,5 @@
 t);%0A
-%0A%09/**%0A%09 * returns element of array.%0A%09 * @param index index of array.%0A%09 * @return element%0A%09 */%0A%09abstract T get(int index);%0A%0A%09/**%0A%09 * returns array.%0A%09 * @return array%0A%09 */%0A%09abstract T%5B%5D getAll();%0A%7D%0A
+%7D

delete unnecessary methods.