JavaTM 2 Platform
Standard Ed. 5.0

ÀÎÅÍÆäÀ̽º
java.util.SortedSet »ç¿ë

SortedSet¸¦ »ç¿ëÇÏ°í ÀÖ´Â ÆÐÅ°Áö
java.util ÀÌ ÆÐÅ°Áö¿¡´Â Ä÷º¼Ç üÁ¦, ·¹°Å½Ã Ä÷º¼Ç Ŭ·¡½º, À̺¥Æ® ¸ðµ¨, ³¯Â¥¿Í ½Ã°£, ±¹Á¦È­ ¹× ´Ù¾çÇÑ À¯Æ¿¸®Æ¼ Ŭ·¡½º (StringTokenizer, ³­¼ö »ý¼º±â ¹× ºñÆ® ¹è¿­)°¡ Æ÷ÇԵǾî ÀÖ½À´Ï´Ù.  
 

java.util ¿¡¼­ÀÇ SortedSet »ç¿ë
 

SortedSet¸¦ ±¸ÇöÇÏ°í ÀÖ´Â java.util Ŭ·¡½º
 class TreeSet<E>
          ÀÌ Å¬·¡½º´Â TreeMap ÀνºÅϽº¿¡ ±Ù°ÅÇÏ´Â Set ÀÎÅÍÆäÀ̽º¸¦ ±¸ÇöÇÕ´Ï´Ù.
 

SortedSet¸¦ µ¹·ÁÁÖ´Â java.util ¸Þ¼­µå
static
<E> SortedSet <E>
Collections. checkedSortedSet (SortedSet <E> s, Class <E> type)
          ÁöÁ¤µÈ ¼ÒÆ® ¼¼Æ®ÀÇ µ¿ÀûÀ¸·Î ÇüÅ º¸ÁõµÈ ºä¸¦ ¸®ÅÏÇÕ´Ï´Ù.
 SortedSet <E > SortedSet. headSet (E  toElement)
          ¼ÒÆ® ¼¼Æ®ÀÇ toElement º¸´Ù ÀÛÀº ¿ä¼Ò¸¦ °¡Áö´Â ºÎºÐÀÇ ºä¸¦ ¸®ÅÏÇÕ´Ï´Ù.
 SortedSet <E > TreeSet. headSet (E  toElement)
          ¼¼Æ®ÀÇ toElement º¸´Ù ÀÛÀº ¿ä¼Ò¸¦ °¡Áö´Â ºÎºÐÀÇ ºä¸¦ ¸®ÅÏÇÕ´Ï´Ù.
 SortedSet <E > SortedSet. subSet (E  fromElement, E  toElement)
          ¼ÒÆ® ¼¼Æ®ÀÇ fromElement (Æ÷ÇÔÇÑ´Ù)·ÎºÎÅÍ toElement (Æ÷ÇÔÇÏÁö ¾Ê´Â´Ù)±îÁöÀÇ ¿ä¼Ò ¹üÀ§¸¦ °¡Áö´Â ºÎºÐÀÇ ºä¸¦ ¸®ÅÏÇÕ´Ï´Ù (fromElement¿Í toElement°¡ µ¿ÀÏÇÑ °æ¿ì, ºñ¾îÀÖ´Â ¼ÒÆ® ¼¼Æ®°¡ ¸®ÅϵȴÙ).
 SortedSet <E > TreeSet. subSet (E  fromElement, E  toElement)
          ¼¼Æ®ÀÇ fromElement (ÀÌ°ÍÀ» Æ÷ÇÔÇÑ´Ù) ~ toElement (ÀÌ°ÍÀ» Æ÷ÇÔÇÏÁö ¾Ê´Â´Ù)ÀÇ ¿ä¼Ò ¹üÀ§¸¦ °¡Áö´Â ºÎºÐÀÇ ºä¸¦ ¸®ÅÏÇÕ´Ï´Ù.
static
<T> SortedSet <T>
Collections. synchronizedSortedSet (SortedSet <T> s)
          ÁöÁ¤µÈ ¼ÒÆ® ¼¼Æ®¸¦ ±âº»À¸·Î ÇÏ´Â µ¿±â (thread ¼¼ÀÌÇÁÀÎ) ¼ÒÆ® ¼¼Æ®¸¦ ¸®ÅÏÇÕ´Ï´Ù.
 SortedSet <E > SortedSet. tailSet (E  fromElement)
          ¼ÒÆ® ¼¼Æ®ÀÇ fromElement ÀÌ»óÀÇ ¿ä¼Ò¸¦ °¡Áö´Â ºÎºÐÀÇ ºä¸¦ ¸®ÅÏÇÕ´Ï´Ù.
 SortedSet <E > TreeSet. tailSet (E  fromElement)
          ¼¼Æ®ÀÇ fromElement¿¡ µ¿ÀÏÇÑ°¡ À̰ͺ¸´Ù Å« ¿ä¼Ò¸¦ °¡Áö´Â ºÎºÐÀÇ ºä¸¦ ¸®ÅÏÇÕ´Ï´Ù.
static
<T> SortedSet <T>
Collections. unmodifiableSortedSet (SortedSet <T> s)
          ÁöÁ¤µÈ ¼ÒÆ® ¼¼Æ®ÀÇ º¯°æ ºÒ°¡´ÉÇÑ ºä¸¦ ¸®ÅÏÇÕ´Ï´Ù.
 

SortedSet ÇüÀÇ ÆĶó¹ÌÅ͸¦ °¡Áö´Â java.util ¸Þ¼­µå
static
<E> SortedSet <E>
Collections. checkedSortedSet (SortedSet <E> s, Class <E> type)
          ÁöÁ¤µÈ ¼ÒÆ® ¼¼Æ®ÀÇ µ¿ÀûÀ¸·Î ÇüÅ º¸ÁõµÈ ºä¸¦ ¸®ÅÏÇÕ´Ï´Ù.
static
<T> SortedSet <T>
Collections. synchronizedSortedSet (SortedSet <T> s)
          ÁöÁ¤µÈ ¼ÒÆ® ¼¼Æ®¸¦ ±âº»À¸·Î ÇÏ´Â µ¿±â (thread ¼¼ÀÌÇÁÀÎ) ¼ÒÆ® ¼¼Æ®¸¦ ¸®ÅÏÇÕ´Ï´Ù.
static
<T> SortedSet <T>
Collections. unmodifiableSortedSet (SortedSet <T> s)
          ÁöÁ¤µÈ ¼ÒÆ® ¼¼Æ®ÀÇ º¯°æ ºÒ°¡´ÉÇÑ ºä¸¦ ¸®ÅÏÇÕ´Ï´Ù.
 

SortedSet ÇüÀÇ ÆĶó¹ÌÅ͸¦ °¡Áö´Â java.util constructor¡¡ ¡¡
PriorityQueue (SortedSet <? extends E > c)
          ÁöÁ¤µÈ Ä÷º¼Ç³»ÀÇ ¿ä¼Ò¸¦ Æ÷ÇÔÇÑ PriorityQueue¸¦ ÀÛ¼ºÇÕ´Ï´Ù.
TreeSet (SortedSet <E > s)
          ÁöÁ¤µÈ ¼ÒÆ® ¼¼Æ®¿Í °°Àº ¿ä¼Ò¸¦ °¡Á®, °°Àº ¼ø¼­ºÎ¿¡ µû¶ó ¼ÒÆ®µÈ, »õ·Î¿î ¼¼Æ®¸¦ ÀÛ¼ºÇÕ´Ï´Ù.
 


JavaTM 2 Platform
Standard Ed. 5.0

Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy µµ ÂüÁ¶ÇϽʽÿÀ.