Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

List of mutable classes and thread safe methods  RSS feed

 
Ruchir Verma
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey Guys,

Need your help.
How can I get a list of all immutable (or mutable) classes in java and a list of all thread safe methods?
 
Paul Clapham
Sheriff
Posts: 22498
43
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
With great difficulty. I assume you're talking about the standard Java API -- it contains several thousand classes and tens of thousands of methods. Most of the classes are not documented as to whether they are immutable or not, and most of the methods don't have statements about their thread-safety in the documentation.

What would be the purpose of such a list, anyway? Wouldn't it be easier just to answer those questions about specific classes or methods as they arose?
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!