- /**
- * Return the number of {@link TypeInfo} present in this {@link Data}.
- *
- * @return the number of {@link TypeInfo}s
- */
- public int size() {
- return types.size();
- }
-
- /**
- * Return the {@link TypeInfo} at index <i>index</i>.
- *
- * @param index
- * the index of the {@link TypeInfo} to find
- *
- * @return the {@link TypeInfo}
- *
- * @throws IndexOutOfBoundsException
- * if the index is < 0 or >= {@link Data#size()}
- */
- public TypeInfo get(int index) {
- return types.get(index);
- }
-