| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -36,6 +36,8 @@ public FloatDict() { | |||
| 36 | 36 | /** | |
| 37 | 37 | * Create a new lookup with a specific size. This is more efficient than not | |
| 38 | 38 | * specifying a size. Use it when you know the rough size of the thing you're creating. | |
| 39 | + * | ||
| 40 | + * @nowebref | ||
| 39 | 41 | */ | |
| 40 | 42 | public FloatDict(int length) { | |
| 41 | 43 | count = 0; | |
@@ -47,6 +49,8 @@ public FloatDict(int length) { | |||
| 47 | 49 | /** | |
| 48 | 50 | * Read a set of entries from a Reader that has each key/value pair on | |
| 49 | 51 | * a single line, separated by a tab. | |
| 52 | + * | ||
| 53 | + * @nowebref | ||
| 50 | 54 | */ | |
| 51 | 55 | public FloatDict(BufferedReader reader) { | |
| 52 | 56 | // public FloatHash(PApplet parent, String filename) { | |
@@ -66,7 +70,9 @@ public FloatDict(BufferedReader reader) { | |||
| 66 | 70 | } | |
| 67 | 71 | } | |
| 68 | 72 | ||
| 69 | - | ||
| 73 | + /** | ||
| 74 | + * @nowebref | ||
| 75 | + */ | ||
| 70 | 76 | public FloatDict(String[] keys, float[] values) { | |
| 71 | 77 | if (keys.length != values.length) { | |
| 72 | 78 | throw new IllegalArgumentException("key and value arrays must be the same length"); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -26,19 +26,25 @@ public FloatList() { | |||
| 26 | 26 | data = new float[10]; | |
| 27 | 27 | } | |
| 28 | 28 | ||
| 29 | - | ||
| 29 | + /** | ||
| 30 | + * @nowebref | ||
| 31 | + */ | ||
| 30 | 32 | public FloatList(int length) { | |
| 31 | 33 | data = new float[length]; | |
| 32 | 34 | } | |
| 33 | 35 | ||
| 34 | - | ||
| 36 | + /** | ||
| 37 | + * @nowebref | ||
| 38 | + */ | ||
| 35 | 39 | public FloatList(float[] list) { | |
| 36 | 40 | count = list.length; | |
| 37 | 41 | data = new float[count]; | |
| 38 | 42 | System.arraycopy(list, 0, data, 0, count); | |
| 39 | 43 | } | |
| 40 | 44 | ||
| 41 | - | ||
| 45 | + /** | ||
| 46 | + * @nowebref | ||
| 47 | + */ | ||
| 42 | 48 | public FloatList(Iterable<Float> iter) { | |
| 43 | 49 | this(10); | |
| 44 | 50 | for (float v : iter) { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -59,6 +59,8 @@ public IntDict() { | |||
| 59 | 59 | /** | |
| 60 | 60 | * Create a new lookup with a specific size. This is more efficient than not | |
| 61 | 61 | * specifying a size. Use it when you know the rough size of the thing you're creating. | |
| 62 | + * | ||
| 63 | + * @nowebref | ||
| 62 | 64 | */ | |
| 63 | 65 | public IntDict(int length) { | |
| 64 | 66 | count = 0; | |
@@ -70,6 +72,8 @@ public IntDict(int length) { | |||
| 70 | 72 | /** | |
| 71 | 73 | * Read a set of entries from a Reader that has each key/value pair on | |
| 72 | 74 | * a single line, separated by a tab. | |
| 75 | + * | ||
| 76 | + * @nowebref | ||
| 73 | 77 | */ | |
| 74 | 78 | public IntDict(BufferedReader reader) { | |
| 75 | 79 | // public IntHash(PApplet parent, String filename) { | |
@@ -89,7 +93,9 @@ public IntDict(BufferedReader reader) { | |||
| 89 | 93 | } | |
| 90 | 94 | } | |
| 91 | 95 | ||
| 92 | - | ||
| 96 | + /** | ||
| 97 | + * @nowebref | ||
| 98 | + */ | ||
| 93 | 99 | public IntDict(String[] keys, int[] values) { | |
| 94 | 100 | if (keys.length != values.length) { | |
| 95 | 101 | throw new IllegalArgumentException("key and value arrays must be the same length"); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -31,19 +31,25 @@ public IntList() { | |||
| 31 | 31 | data = new int[10]; | |
| 32 | 32 | } | |
| 33 | 33 | ||
| 34 | - | ||
| 34 | + /** | ||
| 35 | + * @nowebref | ||
| 36 | + */ | ||
| 35 | 37 | public IntList(int length) { | |
| 36 | 38 | data = new int[length]; | |
| 37 | 39 | } | |
| 38 | 40 | ||
| 39 | - | ||
| 41 | + /** | ||
| 42 | + * @nowebref | ||
| 43 | + */ | ||
| 40 | 44 | public IntList(int[] source) { | |
| 41 | 45 | count = source.length; | |
| 42 | 46 | data = new int[count]; | |
| 43 | 47 | System.arraycopy(source, 0, data, 0, count); | |
| 44 | 48 | } | |
| 45 | 49 | ||
| 46 | - | ||
| 50 | + /** | ||
| 51 | + * @nowebref | ||
| 52 | + */ | ||
| 47 | 53 | public IntList(Iterable<Integer> iter) { | |
| 48 | 54 | this(10); | |
| 49 | 55 | for (int v : iter) { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -108,7 +108,6 @@ public class JSONArray { | |||
| 108 | 108 | ||
| 109 | 109 | /** | |
| 110 | 110 | * Construct an empty JSONArray. | |
| 111 | - * @nowebref | ||
| 112 | 111 | */ | |
| 113 | 112 | public JSONArray() { | |
| 114 | 113 | this.myArrayList = new ArrayList<Object>(); | |
@@ -125,8 +124,10 @@ public JSONArray(Reader reader) { | |||
| 125 | 124 | ||
| 126 | 125 | /** | |
| 127 | 126 | * Construct a JSONArray from a JSONTokener. | |
| 127 | + * | ||
| 128 | 128 | * @param x A JSONTokener | |
| 129 | 129 | * @throws JSONException If there is a syntax error. | |
| 130 | + * @nowebref | ||
| 130 | 131 | */ | |
| 131 | 132 | protected JSONArray(JSONTokener x) { | |
| 132 | 133 | this(); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -37,6 +37,8 @@ public StringDict() { | |||
| 37 | 37 | * Create a new lookup pre-allocated to a specific length. This will not | |
| 38 | 38 | * change the size(), but is more efficient than not specifying a length. | |
| 39 | 39 | * Use it when you know the rough size of the thing you're creating. | |
| 40 | + * | ||
| 41 | + * @nowebref | ||
| 40 | 42 | */ | |
| 41 | 43 | public StringDict(int length) { | |
| 42 | 44 | count = 0; | |
@@ -48,6 +50,8 @@ public StringDict(int length) { | |||
| 48 | 50 | /** | |
| 49 | 51 | * Read a set of entries from a Reader that has each key/value pair on | |
| 50 | 52 | * a single line, separated by a tab. | |
| 53 | + * | ||
| 54 | + * @nowebref | ||
| 51 | 55 | */ | |
| 52 | 56 | public StringDict(BufferedReader reader) { | |
| 53 | 57 | String[] lines = PApplet.loadStrings(reader); | |
@@ -64,7 +68,9 @@ public StringDict(BufferedReader reader) { | |||
| 64 | 68 | } | |
| 65 | 69 | } | |
| 66 | 70 | ||
| 67 | - | ||
| 71 | + /** | ||
| 72 | + * @nowebref | ||
| 73 | + */ | ||
| 68 | 74 | public StringDict(String[] keys, String[] values) { | |
| 69 | 75 | if (keys.length != values.length) { | |
| 70 | 76 | throw new IllegalArgumentException("key and value arrays must be the same length"); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -25,21 +25,29 @@ public StringList() { | |||
| 25 | 25 | this(10); | |
| 26 | 26 | } | |
| 27 | 27 | ||
| 28 | - | ||
| 28 | + /** | ||
| 29 | + * @nowebref | ||
| 30 | + */ | ||
| 29 | 31 | public StringList(int length) { | |
| 30 | 32 | data = new String[length]; | |
| 31 | 33 | } | |
| 32 | 34 | ||
| 33 | - | ||
| 35 | + /** | ||
| 36 | + * @nowebref | ||
| 37 | + */ | ||
| 34 | 38 | public StringList(String[] list) { | |
| 35 | 39 | count = list.length; | |
| 36 | 40 | data = new String[count]; | |
| 37 | 41 | System.arraycopy(list, 0, data, 0, count); | |
| 38 | 42 | } | |
| 39 | 43 | ||
| 40 | 44 | ||
| 41 | - // Create from something iterable, for instance: | ||
| 42 | - // StringList list = new StringList(hashMap.keySet()); | ||
| 45 | + /** | ||
| 46 | + * Create from something iterable, for instance: | ||
| 47 | + * StringList list = new StringList(hashMap.keySet()); | ||
| 48 | + * | ||
| 49 | + * @nowebref | ||
| 50 | + */ | ||
| 43 | 51 | public StringList(Iterable<String> iter) { | |
| 44 | 52 | this(10); | |
| 45 | 53 | for (String s : iter) { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -99,21 +99,29 @@ public Table() { | |||
| 99 | 99 | init(); | |
| 100 | 100 | } | |
| 101 | 101 | ||
| 102 | - | ||
| 102 | + /** | ||
| 103 | + * @nowebref | ||
| 104 | + */ | ||
| 103 | 105 | public Table(File file) throws IOException { | |
| 104 | 106 | this(file, null); | |
| 105 | 107 | } | |
| 106 | 108 | ||
| 107 | 109 | ||
| 108 | - // version that uses a File object; future releases (or data types) | ||
| 109 | - // may include additional optimizations here | ||
| 110 | + /** | ||
| 111 | + * version that uses a File object; future releases (or data types) | ||
| 112 | + * may include additional optimizations here | ||
| 113 | + * | ||
| 114 | + * @nowebref | ||
| 115 | + */ | ||
| 110 | 116 | public Table(File file, String options) throws IOException { | |
| 111 | 117 | // uses createInput() to handle .gz (and eventually .bz2) files | |
| 112 | 118 | parse(PApplet.createInput(file), | |
| 113 | 119 | extensionOptions(true, file.getName(), options)); | |
| 114 | 120 | } | |
| 115 | 121 | ||
| 116 | - | ||
| 122 | + /** | ||
| 123 | + * @nowebref | ||
| 124 | + */ | ||
| 117 | 125 | public Table(InputStream input) throws IOException { | |
| 118 | 126 | this(input, null); | |
| 119 | 127 | } | |
@@ -127,6 +135,8 @@ public Table(InputStream input) throws IOException { | |||
| 127 | 135 | * <li>newlines - this CSV file contains newlines inside individual cells | |
| 128 | 136 | * <li>header - this table has a header (title) row | |
| 129 | 137 | * </ul> | |
| 138 | + * | ||
| 139 | + * @nowebref | ||
| 130 | 140 | * @param input | |
| 131 | 141 | * @param options | |
| 132 | 142 | * @throws IOException | |
@@ -135,7 +145,9 @@ public Table(InputStream input, String options) throws IOException { | |||
| 135 | 145 | parse(input, options); | |
| 136 | 146 | } | |
| 137 | 147 | ||
| 138 | - | ||
| 148 | + /** | ||
| 149 | + * @nowebref | ||
| 150 | + */ | ||
| 139 | 151 | public Table(ResultSet rs) { | |
| 140 | 152 | init(); | |
| 141 | 153 | try { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -63,7 +63,7 @@ public class XML implements Serializable { | |||
| 63 | 63 | ||
| 64 | 64 | /** | |
| 65 | 65 | * @nowebref | |
| 66 | - */ | ||
| 66 | + */ | ||
| 67 | 67 | protected XML() { } | |
| 68 | 68 | ||
| 69 | 69 | ||
@@ -179,9 +179,8 @@ public XML(Reader reader, String options) throws IOException, ParserConfiguratio | |||
| 179 | 179 | ||
| 180 | 180 | ||
| 181 | 181 | /** | |
| 182 | - * @param name description TBD | ||
| 182 | + * @param name creates a node with this name | ||
| 183 | 183 | * | |
| 184 | - * @nowebref | ||
| 185 | 184 | */ | |
| 186 | 185 | public XML(String name) { | |
| 187 | 186 | try { | |
| Back | FazBrowse Home | New Git URL |
0 commit comments