|
|
Re: How can i poof an elist data? [message #423365 is a reply to message #423364] |
Mon, 29 September 2008 14:44 |
|
Jörg schrieb:
> Sorry for the spelling mistake.
>
> Jörg schrieb:
>> Hello,
>>
>> I have an Elist like this. EList<Property> Pi
>>
>> Now i fill this EList with some Elements. But i want to proof these
>> Elements dynamically. So is there a way to get the information, that
>> this elist only holds propertys?
Jörg, I'm curious: Which non-Property classed objects do you think would
Java allow you to add to such a list?
Cheers
/Eike
>>
>> This is only an example, there are some more lists, whiches holds
>> other elements.
>>
>> Greetings
>> Jörg
Cheers
/Eike
----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
|
|
|
|
Re: How can i poof an elist data? [message #423368 is a reply to message #423367] |
Mon, 29 September 2008 14:48 |
|
Jörg schrieb:
> There is no non-property class i can at. I know this. this is the
> reason i want to proof it, before i call the put method.
I still don't understand. Why do you want to proof something that you
already know?
>
> Eike Stepper schrieb:
>> Jörg schrieb:
>>> Sorry for the spelling mistake.
>>>
>>> Jörg schrieb:
>>>> Hello,
>>>>
>>>> I have an Elist like this. EList<Property> Pi
>>>>
>>>> Now i fill this EList with some Elements. But i want to proof these
>>>> Elements dynamically. So is there a way to get the information,
>>>> that this elist only holds propertys?
>> Jörg, I'm curious: Which non-Property classed objects do you think
>> would Java allow you to add to such a list?
>>
>> Cheers
>> /Eike
>>
>>
>>>>
>>>> This is only an example, there are some more lists, whiches holds
>>>> other elements.
>>>>
>>>> Greetings
>>>> Jörg
Cheers
/Eike
----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
|
|
|
|
Re: How can i poof an elist data? [message #423370 is a reply to message #423368] |
Mon, 29 September 2008 14:50 |
|
Eike Stepper schrieb:
> Jörg schrieb:
>> There is no non-property class i can at. I know this. this is the
>> reason i want to proof it, before i call the put method.
> I still don't understand. Why do you want to proof something that you
> already know?
Ah, do you mean how to test if a given object "is a" Property?
That would be a pure Java question and I'd say
if (object instanceof Property) list.add((Property)object);
>
>>
>> Eike Stepper schrieb:
>>> Jörg schrieb:
>>>> Sorry for the spelling mistake.
>>>>
>>>> Jörg schrieb:
>>>>> Hello,
>>>>>
>>>>> I have an Elist like this. EList<Property> Pi
>>>>>
>>>>> Now i fill this EList with some Elements. But i want to proof
>>>>> these Elements dynamically. So is there a way to get the
>>>>> information, that this elist only holds propertys?
>>> Jörg, I'm curious: Which non-Property classed objects do you think
>>> would Java allow you to add to such a list?
>>>
>>> Cheers
>>> /Eike
>>>
>>>
>>>>>
>>>>> This is only an example, there are some more lists, whiches holds
>>>>> other elements.
>>>>>
>>>>> Greetings
>>>>> Jörg
Cheers
/Eike
----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
|
|
|
|
Powered by
FUDForum. Page generated in 0.03541 seconds