Searched refs:array (Results 1 - 25 of 37) sorted by relevance

12

/glassfish-3.1.2/admin/util/src/main/java/com/sun/enterprise/admin/util/
H A DArrayConversion.java81 toAppropriateType( Object array) argument
83 return( (Object [])convert( array ) );
88 toBooleans( boolean [] array )
90 return( (Boolean [])convert( array ) );
94 toCharacters( char [] array )
96 return( (Character [])convert( array ) );
100 toBytes( byte [] array )
102 return( (Byte [])convert( array ) );
106 toShorts( short [] array )
108 return( (Short [])convert( array ) );
[all...]
/glassfish-3.1.2/common/amx-core/src/main/java/org/glassfish/admin/amx/util/
H A DArrayConversion.java86 Convert an an array of primitive types to an array of Objects of non-primitive
89 @param array the array to convert
91 public static Object[] toAppropriateType(Object array) argument
93 return convert(array);
96 public static Boolean[] toBooleans(boolean[] array) argument
98 return ((Boolean[]) convert(array));
101 public static Character[] toCharacters(char[] array) argument
103 return ((Character[]) convert(array));
106 toBytes(byte[] array) argument
111 toShorts(short[] array) argument
116 toIntegers(int[] array) argument
121 toLongs(long[] array) argument
126 toFloats(float[] array) argument
131 toDoubles(double[] array) argument
162 toSet(T[] array) argument
[all...]
H A DCollectionUtil.java120 Add all items in an array to a set.
124 final T[] array)
126 for (int i = 0; i < array.length; ++i)
128 c.add(array[i]);
135 @return array of <elementClass>[] elements
122 addArray( final Collection<T> c, final T[] array) argument
H A DArrayUtil.java108 public static boolean arrayContainsNulls(final Object[] array) argument
112 for (int i = 0; i < array.length; ++i)
114 if (array[i] == null)
131 Create a new array from the original.
133 @param items the original array
136 @return an array of the same type, containing numItems items
152 Create a new array consisting of originals and new.
154 @param items1 1st array
155 @param items2 2nd array
156 @return an array o
[all...]
H A DListUtil.java58 Add all items in an array to a list.
62 final T[] array)
64 for (int i = 0; i < array.length; ++i)
66 list.add(array[i]);
60 addArray( final List<T> list, final T[] array) argument
/glassfish-3.1.2/ejb/ejb-container/src/main/java/com/sun/ejb/spi/distributed/
H A DReadOnlyBeanMessageCallBack.java153 * Marshal an long to a byte array. The bytes are in BIGENDIAN order. i.e.
154 * array[offset] is the most-significant-byte and array[offset+7] is the
157 * @param array
158 * The array of bytes.
162 private static void longToBytes(long value, byte[] array, int offset) { argument
163 array[offset] = (byte) ((value >>> 56) & 0xFF);
164 array[offset + 1] = (byte) ((value >>> 48) & 0xFF);
165 array[offset + 2] = (byte) ((value >>> 40) & 0xFF);
166 array[offse
183 bytesToLong(byte[] array, int offset) argument
202 bytesToInt(byte[] array, int offset) argument
[all...]
/glassfish-3.1.2/ejb/ejb-container/src/main/java/com/sun/ejb/spi/sfsb/store/
H A DSFSBUUIDUtil.java73 public Object byteArrayToKey(byte[] array, int startIndex, int len); argument
/glassfish-3.1.2/deployment/dol/src/main/java/com/sun/enterprise/deployment/
H A DMethodPermissionDescriptor.java82 MethodDescriptor[] array = new MethodDescriptor[methods.size()];
83 methods.copyInto(array);
84 return array;
88 MethodPermission[] array = new MethodPermission[mps.size()];
89 mps.copyInto(array);
90 return array;
H A DWebResourceCollectionImpl.java127 * Returns the HttpMethods this collection has in an array of strings
129 * @return array of strings of HttpMethods
135 String[] array = (String[])httpMethods.toArray(new String[0]);
136 return array;
176 * Returns the HttpMethodOmissions this collection has in an array of strings
178 * @return array of strings of HttpMethodOmissions
184 String[] array = (String[])httpMethodOmissions.toArray(new String[0]);
185 return array;
/glassfish-3.1.2/admin/rest/src/main/java/org/glassfish/admin/rest/provider/
H A DGetResultListJsonProvider.java93 JSONArray array = new JSONArray();
96 array.put(link.getValue());
98 return array;
102 JSONArray array = new JSONArray();
104 //TODO commandResourcePath is two dimensional array. It seems the second e.x. see DomainResource#getCommandResourcesPaths().
107 array.put(getElementLink(uriInfo, commandResourcePath[0]));
109 return array;
H A DActionReportResultJsonProvider.java123 JSONArray array = new JSONArray();
133 array.put(object);
136 return array;
140 JSONArray array = new JSONArray();
143 array.put(processReport(subReport));
146 return array;
H A DActionReportResultXmlProvider.java103 XmlArray array = new XmlArray("children");
113 array.put(object);
116 return array;
120 XmlArray array = new XmlArray("subReports");
123 array.put(processReport(subReport));
126 return array;
/glassfish-3.1.2/ejb/ejb-container/src/main/java/com/sun/ejb/spi/sfsb/util/
H A DSFSBUUIDUtil.java72 public T byteArrayToKey(byte[] array, int startIndex, int len); argument
/glassfish-3.1.2/ejb/ejb-container/src/main/java/com/sun/ejb/base/sfsb/util/
H A DSimpleKeyGenerator.java111 byte[] array = new byte[20];
113 Utility.longToBytes(key.prefix, array, 0);
114 Utility.longToBytes(key.suffix, array, 8);
115 Utility.intToBytes(key.id, array, 16);
117 return array;
128 public SimpleSessionKey byteArrayToKey(byte[] array, int startIndex, int len) { argument
129 long myPrefix = Utility.bytesToLong(array, startIndex);
130 long mySuffix = Utility.bytesToLong(array, startIndex+8);
131 int myId = Utility.bytesToInt(array, startIndex+16);
/glassfish-3.1.2/common/common-util/src/main/java/com/sun/enterprise/util/
H A DUtility.java140 /** Unmarshal a byte array to an integer.
142 i.e. array[offset] is the most-significant-byte
143 and array[offset+3] is the least-significant-byte.
144 @param array The array of bytes.
147 public static int bytesToInt(byte[] array, int offset) argument
151 b1 = (array[offset++] << 24) & 0xFF000000;
152 b2 = (array[offset++] << 16) & 0x00FF0000;
153 b3 = (array[offset++] << 8) & 0x0000FF00;
154 b4 = (array[offse
166 intToBytes(int value, byte[] array, int offset) argument
181 bytesToLong(byte[] array, int offset) argument
198 longToBytes(long value, byte[] array, int offset) argument
[all...]
/glassfish-3.1.2/tests/embedded/maven-plugin/websockets/src/main/webapp/javascripts/
H A Dmoo.fx.pack.js94 rgbToHex: function(array){
103 if (array) return hex;
107 hexToRgb: function(array){
115 if (array) return rgb;
/glassfish-3.1.2/web/web-core/src/main/java/org/apache/catalina/util/
H A DDOMWriter.java292 Attr array[] = new Attr[len];
294 array[i] = (Attr)attrs.item(i);
299 name = array[i].getNodeName();
301 name = array[i].getLocalName();
307 curName = array[j].getNodeName();
309 curName = array[j].getLocalName();
317 Attr temp = array[i];
318 array[i] = array[index];
319 array[inde
[all...]
/glassfish-3.1.2/web/web-core/src/main/java/org/apache/catalina/startup/
H A DClassLoaderFactory.java233 String array[] = list.toArray(new String[list.size()]);
236 classLoader = new StandardClassLoader(array);
238 classLoader = new StandardClassLoader(array, parent);
/glassfish-3.1.2/admin/rest/src/main/java/org/glassfish/admin/rest/readers/
H A DJsonParameterMapProvider.java87 JSONArray array = (JSONArray) value;
88 for (int i = 0; i < array.length(); i++) {
89 map.add(k, "" + array.get(i));
/glassfish-3.1.2/deployment/dol/src/main/java/com/sun/enterprise/deployment/node/ejb/
H A DEjbBundleNode.java143 MethodDescriptor[] array = nd.getMethods();
144 for (int i=0;i<array.length;i++) {
145 EjbDescriptor target = descriptor.getEjbByName(array[i].getEjbName());
148 DOLUtils.getDefaultLogger().fine("Adding mp " + mps[j] + " to " + array[i] + " for ejb " + array[i].getEjbName());
149 target.addPermissionedMethod(mps[j], array[i]);
/glassfish-3.1.2/connectors/connectors-runtime/src/main/java/com/sun/enterprise/connectors/util/
H A DConnectorJavaBeanValidator.java70 Class array[] = new Class[]{};
71 Set constraintViolations = validator.validate(bean, array);
/glassfish-3.1.2/deployment/dol/src/main/java/com/sun/enterprise/deployment/runtime/
H A DRuntimeDescriptor.java167 Object array = java.lang.reflect.Array.newInstance(c, list.size());
168 return list.toArray((Object[]) array);
/glassfish-3.1.2/extras/embedded/common/osgi-main/src/main/java/org/glassfish/uberjar/osgimain/
H A DModuleExtractor.java283 byte[] array = new byte[BYTEBUFFER_SIZE];
286 while ((count = b.getContentStream().read(array)) != -1) {
287 out.write(array, 0, count);
/glassfish-3.1.2/admin/rest/src/main/java/org/glassfish/admin/rest/logviewer/
H A DWriterOutputStream.java102 writer.write(out.array(),0,out.position());
/glassfish-3.1.2/cluster/common/src/main/java/com/sun/enterprise/util/cluster/windows/process/
H A DWindowsWmi.java167 JIArray array = (JIArray) values[0];
168 Object[] arrayObj = (Object[]) array.getArrayInstance();

Completed in 88 milliseconds

12