001: /**
002: * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
003: *
004: * Permission is hereby granted, free of charge, to any person obtaining a copy
005: * of this software and associated documentation files (the "Software"), to deal
006: * in the Software without restriction, including without limitation the rights
007: * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
008: * copies of the Software, and to permit persons to whom the Software is
009: * furnished to do so, subject to the following conditions:
010: *
011: * The above copyright notice and this permission notice shall be included in
012: * all copies or substantial portions of the Software.
013: *
014: * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
015: * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
016: * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
017: * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
018: * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
019: * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
020: * SOFTWARE.
021: */package com.liferay.portal.kernel.util;
022:
023: /**
024: * <a href="ArrayUtil_IW.java.html"><b><i>View Source</i></b></a>
025: *
026: * @author Brian Wing Shun Chan
027: *
028: */
029: public class ArrayUtil_IW {
030: public static ArrayUtil_IW getInstance() {
031: return _instance;
032: }
033:
034: public java.lang.Boolean[] append(java.lang.Boolean[] array,
035: java.lang.Boolean obj) {
036: return ArrayUtil.append(array, obj);
037: }
038:
039: public java.lang.Double[] append(java.lang.Double[] array,
040: java.lang.Double obj) {
041: return ArrayUtil.append(array, obj);
042: }
043:
044: public java.lang.Float[] append(java.lang.Float[] array,
045: java.lang.Float obj) {
046: return ArrayUtil.append(array, obj);
047: }
048:
049: public java.lang.Integer[] append(java.lang.Integer[] array,
050: java.lang.Integer obj) {
051: return ArrayUtil.append(array, obj);
052: }
053:
054: public java.lang.Long[] append(java.lang.Long[] array,
055: java.lang.Long obj) {
056: return ArrayUtil.append(array, obj);
057: }
058:
059: public java.lang.Object[] append(java.lang.Object[] array,
060: java.lang.Object obj) {
061: return ArrayUtil.append(array, obj);
062: }
063:
064: public java.lang.Object[][] append(java.lang.Object[][] array,
065: java.lang.Object[] obj) {
066: return ArrayUtil.append(array, obj);
067: }
068:
069: public java.lang.Short[] append(java.lang.Short[] array,
070: java.lang.Short obj) {
071: return ArrayUtil.append(array, obj);
072: }
073:
074: public java.lang.String[] append(java.lang.String[] array,
075: java.lang.String obj) {
076: return ArrayUtil.append(array, obj);
077: }
078:
079: public java.lang.String[][] append(java.lang.String[][] array,
080: java.lang.String[] obj) {
081: return ArrayUtil.append(array, obj);
082: }
083:
084: public java.lang.Boolean[] append(java.lang.Boolean[] array1,
085: java.lang.Boolean[] array2) {
086: return ArrayUtil.append(array1, array2);
087: }
088:
089: public java.lang.Double[] append(java.lang.Double[] array1,
090: java.lang.Double[] array2) {
091: return ArrayUtil.append(array1, array2);
092: }
093:
094: public java.lang.Float[] append(java.lang.Float[] array1,
095: java.lang.Float[] array2) {
096: return ArrayUtil.append(array1, array2);
097: }
098:
099: public java.lang.Integer[] append(java.lang.Integer[] array1,
100: java.lang.Integer[] array2) {
101: return ArrayUtil.append(array1, array2);
102: }
103:
104: public java.lang.Long[] append(java.lang.Long[] array1,
105: java.lang.Long[] array2) {
106: return ArrayUtil.append(array1, array2);
107: }
108:
109: public java.lang.Object[] append(java.lang.Object[] array1,
110: java.lang.Object[] array2) {
111: return ArrayUtil.append(array1, array2);
112: }
113:
114: public java.lang.Object[][] append(java.lang.Object[][] array1,
115: java.lang.Object[][] array2) {
116: return ArrayUtil.append(array1, array2);
117: }
118:
119: public java.lang.Short[] append(java.lang.Short[] array1,
120: java.lang.Short[] array2) {
121: return ArrayUtil.append(array1, array2);
122: }
123:
124: public java.lang.String[] append(java.lang.String[] array1,
125: java.lang.String[] array2) {
126: return ArrayUtil.append(array1, array2);
127: }
128:
129: public java.lang.String[][] append(java.lang.String[][] array1,
130: java.lang.String[][] array2) {
131: return ArrayUtil.append(array1, array2);
132: }
133:
134: public void combine(java.lang.Object[] array1,
135: java.lang.Object[] array2, java.lang.Object[] combinedArray) {
136: ArrayUtil.combine(array1, array2, combinedArray);
137: }
138:
139: public boolean contains(boolean[] array, boolean value) {
140: return ArrayUtil.contains(array, value);
141: }
142:
143: public boolean contains(char[] array, char value) {
144: return ArrayUtil.contains(array, value);
145: }
146:
147: public boolean contains(double[] array, double value) {
148: return ArrayUtil.contains(array, value);
149: }
150:
151: public boolean contains(long[] array, long value) {
152: return ArrayUtil.contains(array, value);
153: }
154:
155: public boolean contains(int[] array, int value) {
156: return ArrayUtil.contains(array, value);
157: }
158:
159: public boolean contains(short[] array, short value) {
160: return ArrayUtil.contains(array, value);
161: }
162:
163: public boolean contains(java.lang.Object[] array,
164: java.lang.Object value) {
165: return ArrayUtil.contains(array, value);
166: }
167:
168: public java.lang.String[] distinct(java.lang.String[] array) {
169: return ArrayUtil.distinct(array);
170: }
171:
172: public java.lang.String[] distinct(java.lang.String[] array,
173: java.util.Comparator comparator) {
174: return ArrayUtil.distinct(array, comparator);
175: }
176:
177: public int getLength(java.lang.Object[] array) {
178: return ArrayUtil.getLength(array);
179: }
180:
181: public java.lang.Object getValue(java.lang.Object[] array, int pos) {
182: return ArrayUtil.getValue(array, pos);
183: }
184:
185: public java.lang.String[] removeByPrefix(java.lang.String[] array,
186: java.lang.String prefix) {
187: return ArrayUtil.removeByPrefix(array, prefix);
188: }
189:
190: public java.lang.Boolean[] toObjectArray(boolean[] array) {
191: return ArrayUtil.toObjectArray(array);
192: }
193:
194: public java.lang.Double[] toObjectArray(double[] array) {
195: return ArrayUtil.toObjectArray(array);
196: }
197:
198: public java.lang.Float[] toObjectArray(float[] array) {
199: return ArrayUtil.toObjectArray(array);
200: }
201:
202: public java.lang.Integer[] toObjectArray(int[] array) {
203: return ArrayUtil.toObjectArray(array);
204: }
205:
206: public java.lang.Long[] toObjectArray(long[] array) {
207: return ArrayUtil.toObjectArray(array);
208: }
209:
210: public java.lang.Short[] toObjectArray(short[] array) {
211: return ArrayUtil.toObjectArray(array);
212: }
213:
214: private ArrayUtil_IW() {
215: }
216:
217: private static ArrayUtil_IW _instance = new ArrayUtil_IW();
218: }
|