?
Solved

Check if an Interface a Collection interface

Posted on 2004-10-15
1
Medium Priority
?
220 Views
Last Modified: 2010-03-31
If I have gotten an a particular interface from an array of class1.getInterfaces().  How do I check to see if this interface is the interface java.util.Collection?
0
Comment
Question by:bcsmess
1 Comment
 
LVL 92

Accepted Solution

by:
objects earned 2000 total points
ID: 12325285
if (cls==Collection.class)
{
}
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
The viewer will learn how to implement Singleton Design Pattern in Java.
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
Suggested Courses
Course of the Month15 days, 1 hour left to enroll

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question