Get Array in the Server

Get Array in the Server

Post by Zula » Thu, 11 Dec 2003 02:32:44


As it is that I accede to an existing Array in the Server
 
 
 

1. Arrays- getting a 1D array from a 2D array

2. Getting primitive array out of array of wrapper type

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

I was wondering whether there is some API function which gives me a
boolean[] if I have a Boolean[]. Unfortunately, autoboxing does not
work for arrays.

I want to have a varags method and make a list of the arguments, like this:

public static SignatureSymbol getInstance(final boolean... elements) {
final List<Boolean> symbolList = Arrays.asList(elements);
// this gives compiler error
SignatureSymbol result = SignatureSymbol.instances.get(symbolList);
// this needs List<Boolean>
if (result == null) {
boolean[] elems = primitiveArray(elements);
result = new SignatureSymbol(elems); // but this needs boolean[]
SignatureSymbol.instances.put(symbolList, result);
}
return result;
}

Any ideas?

TIA, H.
- --
Hendrik Maryns
http://www.yqcomputer.com/ ~hendrik/
==================
http://www.yqcomputer.com/
Ask smart questions, get good answers:
http://www.yqcomputer.com/ ~esr/faqs/smart-questions.html
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)

iD8DBQFGJ0A4e+7xMGD3itQRAt93AJ47qMrohUQOcmK9iIMgn4cljJlMJQCdEl3X
LMVBOCyeXApZ4UjilwS2mEo=
=Rv9F
-----END PGP SIGNATURE-----

3. Getting all versions (array of array)

4. Getting value from an array using another array

5. Cell arrays-problem Getting values out of the cell array and using it

6. Getting array information out of a function on into another array

7. Getting values from array of arrays

8. Trying to dynamically create arrays, getting can't use string as ARRAY ref

9. getting values in an array of arrays

10. "getting data and memory arrays.vi" is very slow getting data from instrument

11. Critical Chain COM or Plug-ins for Project Server 2002 or Project Server 2003

12. Unable to validate SQL Server Reporting Services Report Server ins

13. auto_ptr for array of built-ins

14. Getting Add-Ins to load at startup

15. Getting custom commandbar to show on Add-ins tab