Click here to Skip to main content
15,921,694 members
Home / Discussions / Java
   

Java

 
AnswerRe: A Collection is not thread-safe? Pin
Richard MacCutchan27-Sep-10 22:03
mveRichard MacCutchan27-Sep-10 22:03 
GeneralRe: A Collection is not thread-safe? Pin
Branislav Vidovic28-Sep-10 20:58
Branislav Vidovic28-Sep-10 20:58 
GeneralRe: A Collection is not thread-safe? Pin
Richard MacCutchan28-Sep-10 21:23
mveRichard MacCutchan28-Sep-10 21:23 
QuestionThreads and UML Pin
Neo1010127-Sep-10 6:27
Neo1010127-Sep-10 6:27 
AnswerRe: Threads and UML Pin
DaveAuld27-Sep-10 9:57
professionalDaveAuld27-Sep-10 9:57 
GeneralRe: Threads and UML Pin
David Skelly27-Sep-10 22:50
David Skelly27-Sep-10 22:50 
GeneralRe: Threads and UML Pin
DaveAuld27-Sep-10 23:58
professionalDaveAuld27-Sep-10 23:58 
AnswerRe: Threads and UML Pin
David Skelly27-Sep-10 22:59
David Skelly27-Sep-10 22:59 
This diagram isn't really UML so it is hard to know what it is intended to show.

In UML, the solid arrow means that Thread implements Runnable (Thread is a Runnable).

The other arrow is an open arrow and in UML this would normally represent a "has a" relationship rather than "is a". So, this would mean that MyRunnable has a Runnable, and the concrete implementation of that Runnable is a Thread.

However, the names of the classes in this example lead me to think this is not what is intended.

It might be that MyRunnable implements Runnable, and this runs as the target of a Thread, in which case the meaning of the symbols would be completely reversed. MyRunnable is a Runnable, and Thread has a Runnable target.

In other words, this diagram could have two completely opposite meanings. It is not a good diagram.
QuestionArrayList Pin
future383927-Sep-10 2:28
future383927-Sep-10 2:28 
AnswerRe: ArrayList Pin
Cedric Moonen27-Sep-10 2:47
Cedric Moonen27-Sep-10 2:47 
GeneralRe: ArrayList Pin
future383927-Sep-10 3:25
future383927-Sep-10 3:25 
GeneralRe: ArrayList Pin
Cedric Moonen27-Sep-10 4:36
Cedric Moonen27-Sep-10 4:36 
GeneralRe: ArrayList Pin
Richard MacCutchan27-Sep-10 5:41
mveRichard MacCutchan27-Sep-10 5:41 
GeneralRe: ArrayList Pin
Cedric Moonen27-Sep-10 7:44
Cedric Moonen27-Sep-10 7:44 
GeneralRe: ArrayList Pin
Luc Pattyn27-Sep-10 8:44
sitebuilderLuc Pattyn27-Sep-10 8:44 
GeneralRe: ArrayList Pin
David Skelly27-Sep-10 22:47
David Skelly27-Sep-10 22:47 
GeneralRe: ArrayList Pin
Luc Pattyn28-Sep-10 2:14
sitebuilderLuc Pattyn28-Sep-10 2:14 
GeneralRe: ArrayList Pin
David Skelly28-Sep-10 3:16
David Skelly28-Sep-10 3:16 
GeneralRe: ArrayList Pin
Richard MacCutchan27-Sep-10 21:36
mveRichard MacCutchan27-Sep-10 21:36 
GeneralRe: ArrayList Pin
Nagy Vilmos28-Sep-10 1:45
professionalNagy Vilmos28-Sep-10 1:45 
GeneralRe: ArrayList Pin
Richard MacCutchan28-Sep-10 2:18
mveRichard MacCutchan28-Sep-10 2:18 
QuestionHow to implement normal Table control with GEF? Pin
sinron26-Sep-10 21:45
sinron26-Sep-10 21:45 
QuestionHow to refresh JTable of Frame one on close of Frame two Pin
Alok Sharma ji26-Sep-10 21:29
Alok Sharma ji26-Sep-10 21:29 
AnswerRe: How to refresh JTable of Frame one on close of Frame two Pin
David Skelly27-Sep-10 22:40
David Skelly27-Sep-10 22:40 
QuestionDefault form Pin
future383926-Sep-10 17:12
future383926-Sep-10 17:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.