[android-developers] Negative resource id value?
Is it possible that a resource id (such as a generated id for a string
resource) can be a negative int?
Often, when defining a method that accepts a resource id, I want the
caller to be able to specify a "null" value. For primitives this is
not possible, but I'm wondering whether "any negative value" may be a
good approach?
Alternatively I suppose it would be OK to specify the argument as an
Integer and take advantage of auto-boxing.
Thoughts?
--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home