java.util ã¤ã³ã¿ãã§ã¼ã¹ Comparator<T> åãã©ã¡ã¼ã¿:T - ãã®ã³ã³ãã¬ã¼ã¿ã«ããæ¯è¼ããããªãã¸ã§ã¯ãã®å æ¢ç¥ã®å®è£ ã¯ã©ã¹ã®ä¸è¦§: Collator, RuleBasedCollator public interface Comparator<T> ãªãã¸ã§ã¯ãã®ã³ã¬ã¯ã·ã§ã³ã§ãå ¨ä½é åºä»ãããè¡ãæ¯è¼é¢æ°ã§ããã³ã³ãã¬ã¼ã¿ (Comparator) ãã½ã¼ãã¡ã½ãã (Collections.sort ã Arrays.sort ãªã©) ã«æ¸¡ãã¨ãã½ã¼ãé ãæ£ç¢ºã«å¶å¾¡ã§ãã¾ããã¾ããã³ã³ãã¬ã¼ã¿ã使ç¨ããã¨ãã½ã¼ãã»ãããã½ã¼ãããããªã©ã®ç¹å®ã®ãã¼ã¿æ§é ã®é åºãå¶å¾¡ããããèªç¶é åºä»ããæããªããªãã¸ã§ã¯ãã®ã³ã¬ã¯ã·ã§ã³ã«é åºä»ããæä¾ããããããã¨ãã§ãã¾ãã ã³ã³ãã¬ã¼ã¿ c ãè¦ç´ ã®ã»ãã S ã§è¡ãé åºä»ãã¯ãS ã®ãã¹ã¦ã® e1 ããã³ e2 ã«
{{#tags}}- {{label}}
{{/tags}}