/* */ package org.jaxen.util;
/* */
/* */ import java.util.
AbstractList;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public class
SingletonList
/* */ extends
AbstractList
/* */ {
/* */ private final
Object element;
/* */
/* */ public
SingletonList(
Object element) {
/* 74 */ this.
element =
element;
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public int
size() {
/* 83 */ return 1;
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public
Object get(int
index) {
/* 95 */ if (
index == 0) {
/* 96 */ return this.
element;
/* */ }
/* 98 */ throw new
IndexOutOfBoundsException(
index + " != 0");
/* */ }
/* */ }
/* Location: /Users/tommy/.m2/repository/jaxen/jaxen/1.1.1/jaxen-1.1.1.jar!/org/jaxen/util/SingletonList.class
* Java compiler version: 2 (46.0)
* JD-Core Version: 1.1.3
*/