Merge branch 'master' of https://source.jalview.org/git/jalviewjs.git
[jalviewjs.git] / src / javajs / util / Lst.java
index 6257c1f..8d5d62c 100644 (file)
@@ -1,88 +1,88 @@
-/* $RCSfile$\r
- * $Author: hansonr $\r
- * $Date: 2007-04-26 16:57:51 -0500 (Thu, 26 Apr 2007) $\r
- * $Revision: 7502 $\r
- *\r
- * Copyright (C) 2005  The Jmol Development Team\r
- *\r
- * Contact: jmol-developers@lists.sf.net\r
- *\r
- *  This library is free software; you can redistribute it and/or\r
- *  modify it under the terms of the GNU Lesser General Public\r
- *  License as published by the Free Software Foundation; either\r
- *  version 2.1 of the License, or (at your option) any later version.\r
- *\r
- *  This library is distributed in the hope that it will be useful,\r
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of\r
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\r
- *  Lesser General Public License for more details.\r
- *\r
- *  You should have received a copy of the GNU Lesser General Public\r
- *  License along with this library; if not, write to the Free Software\r
- *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.\r
- */\r
-\r
-package javajs.util;\r
-\r
-import java.util.ArrayList;\r
-\r
-/**\r
- * created to remove ambiguities in add and remove\r
- * \r
- * @param <V>\r
- */\r
-public class Lst<V> extends ArrayList<V> {\r
-\r
-  public Lst() {\r
-    super();  \r
-  }\r
-  \r
-  /**\r
-   * @j2sIgnore\r
-   * \r
-   */\r
-  @Override\r
-  @Deprecated\r
-  public boolean add(V v) {\r
-    throw new NullPointerException("use addLast(value), not add(value) in List for JavaScript compatibility");\r
-  }\r
-  \r
-  public boolean addLast(V v) {\r
-    /**\r
-     * no overloading of add(Object) in JavaScript\r
-     * \r
-     * @j2sNative\r
-     * \r
-     * return this.add1(v);\r
-     *  \r
-     */\r
-    {\r
-      return super.add(v);\r
-    }\r
-  }\r
-  \r
-  /**\r
-   * @j2sIgnore\r
-   * \r
-   */\r
-  @Override\r
-  @Deprecated\r
-  public boolean remove(Object v) {\r
-    throw new NullPointerException("use removeObj(obj), not remove(obj) in List for JavaScript compatibility");\r
-  }\r
-  \r
-  public boolean removeObj(Object v) {\r
-    /**\r
-     * no overloading of remove(Object) in JavaScript\r
-     * \r
-     * @j2sNative\r
-     * \r
-     * return this.removeObject(v);\r
-     *  \r
-     */\r
-    {\r
-      return super.remove(v);\r
-    }\r
-  }\r
-  \r
-}\r
+/* $RCSfile$
+ * $Author: hansonr $
+ * $Date: 2007-04-26 16:57:51 -0500 (Thu, 26 Apr 2007) $
+ * $Revision: 7502 $
+ *
+ * Copyright (C) 2005  The Jmol Development Team
+ *
+ * Contact: jmol-developers@lists.sf.net
+ *
+ *  This library is free software; you can redistribute it and/or
+ *  modify it under the terms of the GNU Lesser General Public
+ *  License as published by the Free Software Foundation; either
+ *  version 2.1 of the License, or (at your option) any later version.
+ *
+ *  This library is distributed in the hope that it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ *  Lesser General Public License for more details.
+ *
+ *  You should have received a copy of the GNU Lesser General Public
+ *  License along with this library; if not, write to the Free Software
+ *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
+ */
+
+package javajs.util;
+
+import java.util.ArrayList;
+
+/**
+ * created to remove ambiguities in add and remove
+ * 
+ * @param <V>
+ */
+public class Lst<V> extends ArrayList<V> {
+
+  public Lst() {
+    super();  
+  }
+  
+  /**
+   * @j2sIgnore
+   * 
+   */
+  @Override
+  @Deprecated
+  public boolean add(V v) {
+    throw new NullPointerException("use addLast(value), not add(value) in List for JavaScript compatibility");
+  }
+  
+  public boolean addLast(V v) {
+    /**
+     * no overloading of add(Object) in JavaScript
+     * 
+     * @j2sNative
+     * 
+     * return this.add1(v);
+     *  
+     */
+    {
+      return super.add(v);
+    }
+  }
+  
+  /**
+   * @j2sIgnore
+   * 
+   */
+  @Override
+  @Deprecated
+  public boolean remove(Object v) {
+    throw new NullPointerException("use removeObj(obj), not remove(obj) in List for JavaScript compatibility");
+  }
+  
+  public boolean removeObj(Object v) {
+    /**
+     * no overloading of remove(Object) in JavaScript
+     * 
+     * @j2sNative
+     * 
+     * return this.removeObject(v);
+     *  
+     */
+    {
+      return super.remove(v);
+    }
+  }
+  
+}