X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fext%2Fandroid%2FSparseShortArray.java;h=6cd8019dc47754f25dab214546dd1f683c7c8403;hb=c7827c8c0d28158fcea4ebc132c7b457d60f557d;hp=375d74559406db37680852e97e77c5ed96eda2ae;hpb=1c757dc1e6ee864277825c1ebd9c6a9fbe0da7b2;p=jalview.git diff --git a/src/jalview/ext/android/SparseShortArray.java b/src/jalview/ext/android/SparseShortArray.java index 375d745..6cd8019 100644 --- a/src/jalview/ext/android/SparseShortArray.java +++ b/src/jalview/ext/android/SparseShortArray.java @@ -1,3 +1,23 @@ +/* + * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$) + * Copyright (C) $$Year-Rel$$ The Jalview Authors + * + * This file is part of Jalview. + * + * Jalview is free software: you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation, either version 3 + * of the License, or (at your option) any later version. + * + * Jalview 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Jalview. If not, see . + * The Jalview Authors are detailed in the 'AUTHORS' file. + */ package jalview.ext.android; /* @@ -40,12 +60,15 @@ package jalview.ext.android; * order in the case of valueAt(int). *

*/ -/** - * A copy of SparseShortArray designed to store short values (to minimise space - * usage). + +/* + * Added to Jalview September 2016. A copy of SparseIntArray designed to store + * short values (to minimise space usage). *

- * Note that operations append, put, add throw ArithmeticException if the - * resulting value overflows the range of a short. + * Note that operations append, put, add throw ArithmeticException if either the + * key or the resulting value overflows the range of a short. Calling code + * should trap and handle this, for example by switching to using a + * SparseIntArray instead. */ public class SparseShortArray implements Cloneable {