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

Hash: SHA1


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?

- --
Hendrik Maryns ~hendrik/
Ask smart questions, get good answers: ~esr/faqs/smart-questions.html
Version: GnuPG v1.4.5 (GNU/Linux)


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" 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