Method interrupted()
Return type: boolean
Member of:
java.lang.Thread
[
api documentation
] [
main menu
]
Examples of how the element is used
(one line per example):
[
add your own example
]
1
if (Thread.interrupted()) throw new InterruptedException();
2
if (Thread.interrupted()) throw new InterruptedException();
3
if (Thread.interrupted())
4
if (Thread.interrupted()) throw new InterruptedException();
5
if( Thread.interrupted() ) throw new InterruptedException();
6
if(!interrupted())
7
interrupted = Thread.interrupted();
8
if (Thread.interrupted())
9
if (Thread.interrupted()) throw new InterruptedException();
10
this.interrupted();
11
if(Thread.interrupted()) {
12
if (Thread.interrupted())
13
if ( !threads[i].interrupted() )
14
while (!Thread.currentThread().interrupted() && !destroyed) {
15
if (m_worker != null && m_worker.interrupted())
Java and J2SE are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other Countries.