fadden escribió:
> On Feb 11, 4:54 am, sancane <sanc...@gmail.com> wrote:
>   
>> I oberved that:
>> public Field[]  getFields()
>> Returns an array containing Field objects describing all fields which
>> are defined. That's array is sorted as attributes are declared in the
>> main Class in sun jdk. For example, next Class is defined as:
>>     
>
> The javadoc for Class.getFields says, in part:
>
> "Returns an array containing Field objects reflecting all the
> accessible public fields of the class or interface represented by this
> Class object. The elements in the array returned are not sorted and
> are not in any particular order."
>
>   
Yes, i know it.
I only want to know if there is some way to get the declaration order of
the fields in the main class.

Thanks
>> It is critic for my application to get the Fields in the same order in
>> which they have been declared in the main class. I don't know if it is
>> possible in Android.
>>     
>
> This is implementation-specific behavior and not something you can
> rely on.
>
> >
>   



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to