package java.lang;
public static final
class Character.UnicodeBlock
A family of character subsets representing the character blocks in the Unicode specification. Character blocks generally define characters used for a specific script or purpose. A character is contained by at most one Unicode block.
@since
1.2
Fields:
public static final
AEGEAN_NUMBERS
Constant for the "Aegean Numbers" Unicode character block.
@since
1.5
public static final
ALPHABETIC_PRESENTATION_FORMS
Constant for the "Alphabetic Presentation Forms" Unicode character block.
@since
1.2
public static final
ARABIC
Constant for the "Arabic" Unicode character block.
@since
1.2
public static final
ARABIC_PRESENTATION_FORMS_A
Constant for the "Arabic Presentation Forms-A" Unicode character block.
@since
1.2
public static final
ARABIC_PRESENTATION_FORMS_B
Constant for the "Arabic Presentation Forms-B" Unicode character block.
@since
1.2
public static final
ARMENIAN
Constant for the "Armenian" Unicode character block.
@since
1.2
public static final
ARROWS
Constant for the "Arrows" Unicode character block.
@since
1.2
public static final
BASIC_LATIN
Constant for the "Basic Latin" Unicode character block.
@since
1.2
public static final
BENGALI
Constant for the "Bengali" Unicode character block.
@since
1.2
public static final
BLOCK_ELEMENTS
Constant for the "Block Elements" Unicode character block.
@since
1.2
public static final
BOPOMOFO
Constant for the "Bopomofo" Unicode character block.
@since
1.2
public static final
BOPOMOFO_EXTENDED
Constant for the "Bopomofo Extended" Unicode character block.
@since
1.4
public static final
BOX_DRAWING
Constant for the "Box Drawing" Unicode character block.
@since
1.2
public static final
BRAILLE_PATTERNS
Constant for the "Braille Patterns" Unicode character block.
@since
1.4
public static final
BUHID
Constant for the "Buhid" Unicode character block.
@since
1.5
public static final
BYZANTINE_MUSICAL_SYMBOLS
Constant for the "Byzantine Musical Symbols" Unicode character block.
@since
1.5
public static final
CHEROKEE
Constant for the "Cherokee" Unicode character block.
@since
1.4
public static final
CJK_COMPATIBILITY
Constant for the "CJK Compatibility" Unicode character block.
@since
1.2
public static final
CJK_COMPATIBILITY_FORMS
Constant for the "CJK Compatibility Forms" Unicode character block.
@since
1.2
public static final
CJK_COMPATIBILITY_IDEOGRAPHS
Constant for the "CJK Compatibility Ideographs" Unicode character block.
@since
1.2
public static final
CJK_COMPATIBILITY_IDEOGRAPHS_SUPPLEMENT
Constant for the "CJK Compatibility Ideographs Supplement" Unicode character block.
@since
1.5
public static final
CJK_RADICALS_SUPPLEMENT
Constant for the "CJK Radicals Supplement" Unicode character block.
@since
1.4
public static final
CJK_SYMBOLS_AND_PUNCTUATION
Constant for the "CJK Symbols and Punctuation" Unicode character block.
@since
1.2
public static final
CJK_UNIFIED_IDEOGRAPHS
Constant for the "CJK Unified Ideographs" Unicode character block.
@since
1.2
public static final
CJK_UNIFIED_IDEOGRAPHS_EXTENSION_A
Constant for the "CJK Unified Ideographs Extension A" Unicode character block.
@since
1.4
public static final
CJK_UNIFIED_IDEOGRAPHS_EXTENSION_B
Constant for the "CJK Unified Ideographs Extension B" Unicode character block.
@since
1.5
public static final
COMBINING_DIACRITICAL_MARKS
Constant for the "Combining Diacritical Marks" Unicode character block.
@since
1.2
public static final
COMBINING_HALF_MARKS
Constant for the "Combining Half Marks" Unicode character block.
@since
1.2
public static final
COMBINING_MARKS_FOR_SYMBOLS
Constant for the "Combining Diacritical Marks for Symbols" Unicode character block.

This block was previously known as "Combining Marks for Symbols".

@since
1.2
public static final
CONTROL_PICTURES
Constant for the "Control Pictures" Unicode character block.
@since
1.2
public static final
CURRENCY_SYMBOLS
Constant for the "Currency Symbols" Unicode character block.
@since
1.2
public static final
CYPRIOT_SYLLABARY
Constant for the "Cypriot Syllabary" Unicode character block.
@since
1.5
public static final
CYRILLIC
Constant for the "Cyrillic" Unicode character block.
@since
1.2
public static final
CYRILLIC_SUPPLEMENTARY
Constant for the "Cyrillic Supplementary" Unicode character block.
@since
1.5
public static final
DESERET
Constant for the "Deseret" Unicode character block.
@since
1.5
public static final
DEVANAGARI
Constant for the "Devanagari" Unicode character block.
@since
1.2
public static final
DINGBATS
Constant for the "Dingbats" Unicode character block.
@since
1.2
public static final
ENCLOSED_ALPHANUMERICS
Constant for the "Enclosed Alphanumerics" Unicode character block.
@since
1.2
public static final
ENCLOSED_CJK_LETTERS_AND_MONTHS
Constant for the "Enclosed CJK Letters and Months" Unicode character block.
@since
1.2
public static final
ETHIOPIC
Constant for the "Ethiopic" Unicode character block.
@since
1.4
public static final
GENERAL_PUNCTUATION
Constant for the "General Punctuation" Unicode character block.
@since
1.2
public static final
GEOMETRIC_SHAPES
Constant for the "Geometric Shapes" Unicode character block.
@since
1.2
public static final
GEORGIAN
Constant for the "Georgian" Unicode character block.
@since
1.2
public static final
GOTHIC
Constant for the "Gothic" Unicode character block.
@since
1.5
public static final
GREEK
Constant for the "Greek and Coptic" Unicode character block.

This block was previously known as the "Greek" block.

@since
1.2
public static final
GREEK_EXTENDED
Constant for the "Greek Extended" Unicode character block.
@since
1.2
public static final
GUJARATI
Constant for the "Gujarati" Unicode character block.
@since
1.2
public static final
GURMUKHI
Constant for the "Gurmukhi" Unicode character block.
@since
1.2
public static final
HALFWIDTH_AND_FULLWIDTH_FORMS
Constant for the "Halfwidth and Fullwidth Forms" Unicode character block.
@since
1.2
public static final
HANGUL_COMPATIBILITY_JAMO
Constant for the "Hangul Compatibility Jamo" Unicode character block.
@since
1.2
public static final
HANGUL_JAMO
Constant for the "Hangul Jamo" Unicode character block.
@since
1.2
public static final
HANGUL_SYLLABLES
Constant for the "Hangul Syllables" Unicode character block.
@since
1.2
public static final
HANUNOO
Constant for the "Hanunoo" Unicode character block.
@since
1.5
public static final
HEBREW
Constant for the "Hebrew" Unicode character block.
@since
1.2
public static final
HIGH_PRIVATE_USE_SURROGATES
Constant for the "High Private Use Surrogates" Unicode character block. This block represents codepoint values in the high surrogate range: 0xDB80 through 0xDBFF
@since
1.5
public static final
HIGH_SURROGATES
Constant for the "High Surrogates" Unicode character block. This block represents codepoint values in the high surrogate range: 0xD800 through 0xDB7F
@since
1.5
public static final
HIRAGANA
Constant for the "Hiragana" Unicode character block.
@since
1.2
public static final
IDEOGRAPHIC_DESCRIPTION_CHARACTERS
Constant for the "Ideographic Description Characters" Unicode character block.
@since
1.4
public static final
IPA_EXTENSIONS
Constant for the "IPA Extensions" Unicode character block.
@since
1.2
public static final
KANBUN
Constant for the "Kanbun" Unicode character block.
@since
1.2
public static final
KANGXI_RADICALS
Constant for the "Kangxi Radicals" Unicode character block.
@since
1.4
public static final
KANNADA
Constant for the "Kannada" Unicode character block.
@since
1.2
public static final
KATAKANA
Constant for the "Katakana" Unicode character block.
@since
1.2
public static final
KATAKANA_PHONETIC_EXTENSIONS
Constant for the "Katakana Phonetic Extensions" Unicode character block.
@since
1.5
public static final
KHMER
Constant for the "Khmer" Unicode character block.
@since
1.4
public static final
KHMER_SYMBOLS
Constant for the "Khmer Symbols" Unicode character block.
@since
1.5
public static final
LAO
Constant for the "Lao" Unicode character block.
@since
1.2
public static final
LATIN_1_SUPPLEMENT
Constant for the "Latin-1 Supplement" Unicode character block.
@since
1.2
public static final
LATIN_EXTENDED_A
Constant for the "Latin Extended-A" Unicode character block.
@since
1.2
public static final
LATIN_EXTENDED_ADDITIONAL
Constant for the "Latin Extended Additional" Unicode character block.
@since
1.2
public static final
LATIN_EXTENDED_B
Constant for the "Latin Extended-B" Unicode character block.
@since
1.2
public static final
LETTERLIKE_SYMBOLS
Constant for the "Letterlike Symbols" Unicode character block.
@since
1.2
public static final
LIMBU
Constant for the "Limbu" Unicode character block.
@since
1.5
public static final
LINEAR_B_IDEOGRAMS
Constant for the "Linear B Ideograms" Unicode character block.
@since
1.5
public static final
LINEAR_B_SYLLABARY
Constant for the "Linear B Syllabary" Unicode character block.
@since
1.5
public static final
LOW_SURROGATES
Constant for the "Low Surrogates" Unicode character block. This block represents codepoint values in the high surrogate range: 0xDC00 through 0xDFFF
@since
1.5
public static final
MALAYALAM
Constant for the "Malayalam" Unicode character block.
@since
1.2
public static final
MATHEMATICAL_ALPHANUMERIC_SYMBOLS
Constant for the "Mathematical Alphanumeric Symbols" Unicode character block.
@since
1.5
public static final
MATHEMATICAL_OPERATORS
Constant for the "Mathematical Operators" Unicode character block.
@since
1.2
public static final
MISCELLANEOUS_MATHEMATICAL_SYMBOLS_A
Constant for the "Miscellaneous Mathematical Symbols-A" Unicode character block.
@since
1.5
public static final
MISCELLANEOUS_MATHEMATICAL_SYMBOLS_B
Constant for the "Miscellaneous Mathematical Symbols-B" Unicode character block.
@since
1.5
public static final
MISCELLANEOUS_SYMBOLS
Constant for the "Miscellaneous Symbols" Unicode character block.
@since
1.2
public static final
MISCELLANEOUS_SYMBOLS_AND_ARROWS
Constant for the "Miscellaneous Symbols and Arrows" Unicode character block.
@since
1.5
public static final
MISCELLANEOUS_TECHNICAL
Constant for the "Miscellaneous Technical" Unicode character block.
@since
1.2
public static final
MONGOLIAN
Constant for the "Mongolian" Unicode character block.
@since
1.4
public static final
MUSICAL_SYMBOLS
Constant for the "Musical Symbols" Unicode character block.
@since
1.5
public static final
MYANMAR
Constant for the "Myanmar" Unicode character block.
@since
1.4
public static final
NUMBER_FORMS
Constant for the "Number Forms" Unicode character block.
@since
1.2
public static final
OGHAM
Constant for the "Ogham" Unicode character block.
@since
1.4
public static final
OLD_ITALIC
Constant for the "Old Italic" Unicode character block.
@since
1.5
public static final
OPTICAL_CHARACTER_RECOGNITION
Constant for the "Optical Character Recognition" Unicode character block.
@since
1.2
public static final
ORIYA
Constant for the "Oriya" Unicode character block.
@since
1.2
public static final
OSMANYA
Constant for the "Osmanya" Unicode character block.
@since
1.5
public static final
PHONETIC_EXTENSIONS
Constant for the "Phonetic Extensions" Unicode character block.
@since
1.5
public static final
PRIVATE_USE_AREA
Constant for the "Private Use Area" Unicode character block.
@since
1.2
public static final
RUNIC
Constant for the "Runic" Unicode character block.
@since
1.4
public static final
SHAVIAN
Constant for the "Shavian" Unicode character block.
@since
1.5
public static final
SINHALA
Constant for the "Sinhala" Unicode character block.
@since
1.4
public static final
SMALL_FORM_VARIANTS
Constant for the "Small Form Variants" Unicode character block.
@since
1.2
public static final
SPACING_MODIFIER_LETTERS
Constant for the "Spacing Modifier Letters" Unicode character block.
@since
1.2
public static final
SPECIALS
Constant for the "Specials" Unicode character block.
@since
1.2
public static final
SUPERSCRIPTS_AND_SUBSCRIPTS
Constant for the "Superscripts and Subscripts" Unicode character block.
@since
1.2
public static final
SUPPLEMENTAL_ARROWS_A
Constant for the "Supplemental Arrows-A" Unicode character block.
@since
1.5
public static final
SUPPLEMENTAL_ARROWS_B
Constant for the "Supplemental Arrows-B" Unicode character block.
@since
1.5
public static final
SUPPLEMENTAL_MATHEMATICAL_OPERATORS
Constant for the "Supplemental Mathematical Operators" Unicode character block.
@since
1.5
public static final
SUPPLEMENTARY_PRIVATE_USE_AREA_A
Constant for the "Supplementary Private Use Area-A" Unicode character block.
@since
1.5
public static final
SUPPLEMENTARY_PRIVATE_USE_AREA_B
Constant for the "Supplementary Private Use Area-B" Unicode character block.
@since
1.5
public static final
SURROGATES_AREA
@deprecated
As of J2SE 5, use {@link #HIGH_SURROGATES}, {@link #HIGH_PRIVATE_USE_SURROGATES}, and {@link #LOW_SURROGATES}. These new constants match the block definitions of the Unicode Standard. The {@link #of(char)} and {@link #of(int)} methods return the new constants, not SURROGATES_AREA.
public static final
SYRIAC
Constant for the "Syriac" Unicode character block.
@since
1.4
public static final
TAGALOG
Constant for the "Tagalog" Unicode character block.
@since
1.5
public static final
TAGBANWA
Constant for the "Tagbanwa" Unicode character block.
@since
1.5
public static final
TAGS
Constant for the "Tags" Unicode character block.
@since
1.5
public static final
TAI_LE
Constant for the "Tai Le" Unicode character block.
@since
1.5
public static final
TAI_XUAN_JING_SYMBOLS
Constant for the "Tai Xuan Jing Symbols" Unicode character block.
@since
1.5
public static final
TAMIL
Constant for the "Tamil" Unicode character block.
@since
1.2
public static final
TELUGU
Constant for the "Telugu" Unicode character block.
@since
1.2
public static final
THAANA
Constant for the "Thaana" Unicode character block.
@since
1.4
public static final
THAI
Constant for the "Thai" Unicode character block.
@since
1.2
public static final
TIBETAN
Constant for the "Tibetan" Unicode character block.
@since
1.2
public static final
UGARITIC
Constant for the "Ugaritic" Unicode character block.
@since
1.5
public static final
UNIFIED_CANADIAN_ABORIGINAL_SYLLABICS
Constant for the "Unified Canadian Aboriginal Syllabics" Unicode character block.
@since
1.4
public static final
VARIATION_SELECTORS
Constant for the "Variation Selectors" Unicode character block.
@since
1.5
public static final
VARIATION_SELECTORS_SUPPLEMENT
Constant for the "Variation Selectors Supplement" Unicode character block.
@since
1.5
public static final
YI_RADICALS
Constant for the "Yi Radicals" Unicode character block.
@since
1.4
public static final
YI_SYLLABLES
Constant for the "Yi Syllables" Unicode character block.
@since
1.4
public static final
YIJING_HEXAGRAM_SYMBOLS
Constant for the "Yijing Hexagram Symbols" Unicode character block.
@since
1.5
Methods:
public final
boolean
equals
(
obj
)
Compares two Subset objects for equality. This method returns true if and only if this and the argument refer to the same object; since this method is final, this guarantee holds for all subclasses.
public static final
forName
(
blockName
)
Returns the UnicodeBlock with the given name. Block names are determined by The Unicode Standard. The file Blocks-<version>.txt defines blocks for a particular version of the standard. The Character class specifies the version of the standard that it supports.

This method accepts block names in the following forms:

  1. Canonical block names as defined by the Unicode Standard. For example, the standard defines a "Basic Latin" block. Therefore, this method accepts "Basic Latin" as a valid block name. The documentation of each UnicodeBlock provides the canonical name.
  2. Canonical block names with all spaces removed. For example, "BasicLatin" is a valid block name for the "Basic Latin" block.
  3. The text representation of each constant UnicodeBlock identifier. For example, this method will return the #BASIC_LATIN block if provided with the "BASIC_LATIN" name. This form replaces all spaces and hyphens in the canonical name with underscores.
Finally, character case is ignored for all of the valid block name forms. For example, "BASIC_LATIN" and "basic_latin" are both valid block names. The en_US locale's case mapping rules are used to provide case-insensitive string comparisons for block name validation.

If the Unicode Standard changes block names, both the previous and current names will be accepted.

Parameters
blockNameA UnicodeBlock name.
Return
The UnicodeBlock instance identified by blockName
Throws
IllegalArgumentExceptionif blockName is an invalid name
NullPointerExceptionif blockName is null
@since
1.5
public final native
getClass
()
Returns the runtime class of an object. That Class object is the object that is locked by static synchronized methods of the represented class.
Return
The java.lang.Class object that represents the runtime class of the object. The result is of type {@code Class} where X is the erasure of the static type of the expression on which getClass is called.
public final
int
hashCode
()
Returns the standard hash code as defined by the Object#hashCode method. This method is final in order to ensure that the equals and hashCode methods will be consistent in all subclasses.
public final native
void
notify
()
Wakes up a single thread that is waiting on this object's monitor. If any threads are waiting on this object, one of them is chosen to be awakened. The choice is arbitrary and occurs at the discretion of the implementation. A thread waits on an object's monitor by calling one of the wait methods.

The awakened thread will not be able to proceed until the current thread relinquishes the lock on this object. The awakened thread will compete in the usual manner with any other threads that might be actively competing to synchronize on this object; for example, the awakened thread enjoys no reliable privilege or disadvantage in being the next thread to lock this object.

This method should only be called by a thread that is the owner of this object's monitor. A thread becomes the owner of the object's monitor in one of three ways:

  • By executing a synchronized instance method of that object.
  • By executing the body of a synchronized statement that synchronizes on the object.
  • For objects of type Class, by executing a synchronized static method of that class.

Only one thread at a time can own an object's monitor.

Throws
IllegalMonitorStateExceptionif the current thread is not the owner of this object's monitor.
public final native
void
notifyAll
()
Wakes up all threads that are waiting on this object's monitor. A thread waits on an object's monitor by calling one of the wait methods.

The awakened threads will not be able to proceed until the current thread relinquishes the lock on this object. The awakened threads will compete in the usual manner with any other threads that might be actively competing to synchronize on this object; for example, the awakened threads enjoy no reliable privilege or disadvantage in being the next thread to lock this object.

This method should only be called by a thread that is the owner of this object's monitor. See the notify method for a description of the ways in which a thread can become the owner of a monitor.

Throws
IllegalMonitorStateExceptionif the current thread is not the owner of this object's monitor.
public static
of
(
char
c
)
Returns the object representing the Unicode block containing the given character, or null if the character is not a member of a defined block.

Note: This method cannot handle supplementary characters. To support all Unicode characters, including supplementary characters, use the method.

Parameters
cThe character in question
Return
The UnicodeBlock instance representing the Unicode block of which this character is a member, or null if the character is not a member of any Unicode block
public static
of
(
int
codePoint
)
Returns the object representing the Unicode block containing the given character (Unicode code point), or null if the character is not a member of a defined block.
Parameters
codePointthe character (Unicode code point) in question.
Return
The UnicodeBlock instance representing the Unicode block of which this character is a member, or null if the character is not a member of any Unicode block
Throws
IllegalArgumentExceptionif the specified codePoint is an invalid Unicode code point.
@since
1.5
public final
toString
()
Returns the name of this subset.
public final
void
wait
() throws
Causes current thread to wait until another thread invokes the method or the method for this object. In other words, this method behaves exactly as if it simply performs the call wait(0).

The current thread must own this object's monitor. The thread releases ownership of this monitor and waits until another thread notifies threads waiting on this object's monitor to wake up either through a call to the notify method or the notifyAll method. The thread then waits until it can re-obtain ownership of the monitor and resumes execution.

As in the one argument version, interrupts and spurious wakeups are possible, and this method should always be used in a loop:

     synchronized (obj) {
         while (<condition does not hold>)
             obj.wait();
         ... // Perform action appropriate to condition
     }
 
This method should only be called by a thread that is the owner of this object's monitor. See the notify method for a description of the ways in which a thread can become the owner of a monitor.
Throws
IllegalMonitorStateExceptionif the current thread is not the owner of the object's monitor.
InterruptedExceptionif another thread interrupted the current thread before or while the current thread was waiting for a notification. The interrupted status of the current thread is cleared when this exception is thrown.
public final native
void
wait
(
long
timeout
) throws
Causes current thread to wait until either another thread invokes the method or the method for this object, or a specified amount of time has elapsed.

The current thread must own this object's monitor.

This method causes the current thread (call it T) to place itself in the wait set for this object and then to relinquish any and all synchronization claims on this object. Thread T becomes disabled for thread scheduling purposes and lies dormant until one of four things happens:

  • Some other thread invokes the notify method for this object and thread T happens to be arbitrarily chosen as the thread to be awakened.
  • Some other thread invokes the notifyAll method for this object.
  • Some other thread interrupts thread T.
  • The specified amount of real time has elapsed, more or less. If timeout is zero, however, then real time is not taken into consideration and the thread simply waits until notified.
The thread T is then removed from the wait set for this object and re-enabled for thread scheduling. It then competes in the usual manner with other threads for the right to synchronize on the object; once it has gained control of the object, all its synchronization claims on the object are restored to the status quo ante - that is, to the situation as of the time that the wait method was invoked. Thread T then returns from the invocation of the wait method. Thus, on return from the wait method, the synchronization state of the object and of thread T is exactly as it was when the wait method was invoked.

A thread can also wake up without being notified, interrupted, or timing out, a so-called spurious wakeup. While this will rarely occur in practice, applications must guard against it by testing for the condition that should have caused the thread to be awakened, and continuing to wait if the condition is not satisfied. In other words, waits should always occur in loops, like this one:

     synchronized (obj) {
         while (<condition does not hold>)
             obj.wait(timeout);
         ... // Perform action appropriate to condition
     }
 
(For more information on this topic, see Section 3.2.3 in Doug Lea's "Concurrent Programming in Java (Second Edition)" (Addison-Wesley, 2000), or Item 50 in Joshua Bloch's "Effective Java Programming Language Guide" (Addison-Wesley, 2001).

If the current thread is interrupted by another thread while it is waiting, then an InterruptedException is thrown. This exception is not thrown until the lock status of this object has been restored as described above.

Note that the wait method, as it places the current thread into the wait set for this object, unlocks only this object; any other objects on which the current thread may be synchronized remain locked while the thread waits.

This method should only be called by a thread that is the owner of this object's monitor. See the notify method for a description of the ways in which a thread can become the owner of a monitor.

Parameters
timeoutthe maximum time to wait in milliseconds.
Throws
IllegalArgumentExceptionif the value of timeout is negative.
IllegalMonitorStateExceptionif the current thread is not the owner of the object's monitor.
InterruptedExceptionif another thread interrupted the current thread before or while the current thread was waiting for a notification. The interrupted status of the current thread is cleared when this exception is thrown.
public final
void
wait
(
long
timeout
,
int
nanos
) throws
Causes current thread to wait until another thread invokes the method or the method for this object, or some other thread interrupts the current thread, or a certain amount of real time has elapsed.

This method is similar to the wait method of one argument, but it allows finer control over the amount of time to wait for a notification before giving up. The amount of real time, measured in nanoseconds, is given by:

 1000000*timeout+nanos

In all other respects, this method does the same thing as the method of one argument. In particular, wait(0, 0) means the same thing as wait(0).

The current thread must own this object's monitor. The thread releases ownership of this monitor and waits until either of the following two conditions has occurred:

  • Another thread notifies threads waiting on this object's monitor to wake up either through a call to the notify method or the notifyAll method.
  • The timeout period, specified by timeout milliseconds plus nanos nanoseconds arguments, has elapsed.

The thread then waits until it can re-obtain ownership of the monitor and resumes execution.

As in the one argument version, interrupts and spurious wakeups are possible, and this method should always be used in a loop:

     synchronized (obj) {
         while (<condition does not hold>)
             obj.wait(timeout, nanos);
         ... // Perform action appropriate to condition
     }
 
This method should only be called by a thread that is the owner of this object's monitor. See the notify method for a description of the ways in which a thread can become the owner of a monitor.
Parameters
timeoutthe maximum time to wait in milliseconds.
nanosadditional time, in nanoseconds range 0-999999.
Throws
IllegalArgumentExceptionif the value of timeout is negative or the value of nanos is not in the range 0-999999.
IllegalMonitorStateExceptionif the current thread is not the owner of this object's monitor.
InterruptedExceptionif another thread interrupted the current thread before or while the current thread was waiting for a notification. The interrupted status of the current thread is cleared when this exception is thrown.