• Post Reply Bookmark Topic Watch Topic
  • New Topic

instanceof operator with inner class  RSS feed

 
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys,
I have an inner class Attributevalue that is a part of IntegerAttribute class.Both under com.test.maintenance.core directory now i want to test whether a particular value is an instance of AttributeValue or not.Could
someone please give the expression for it.
Thanks a lot in advance
 
author
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Either AttributeValue or IntegerAttribute.AttributeValue
Here's some code:

Its output is:
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!