ããã©ã«ãã¡ã½ããã¯åã«è§£èª¬ãã¾ããã Java8ã§æãã¤ã³ãã¯ãã®ããæ§ææ¡å¼µãããã©ã«ãã¡ã½ãã ããã§ã¯ããã以å¤ã®æ§ææ¡å¼µã«ã¤ãã¦ã¾ã¨ãã¦ããã¾ãã ã©ã ãå¼ å®è£ ãã¹ãã¡ã½ãããã²ã¨ã¤ã ãã®ã¤ã³ã¿ãã§ã¼ã¹ãé¢æ°åã¤ã³ã¿ãã§ã¼ã¹ã¨ããã¾ãã UnaryOperatorã¤ã³ã¿ãã§ã¼ã¹ã¯å®è£ ãã¹ãã¡ã½ãããapplyã¡ã½ããã²ã¨ã¤ã ããªã®ã§ãé¢æ°åã¤ã³ã¿ãã§ã¼ã¹ã«ãªãã¾ãã ãã¨ãã°ãUnaryOperatorã¤ã³ã¿ãã§ã¼ã¹ãå®è£ ããã¯ã©ã¹ãå®ç¾©ããã¨æ¬¡ã®ããã«ãªãã¾ãã class MyOp implements UnaryOperator<String>{ @Override public String apply(String t) { return "** " + t + " **"; } } ãã®UnaryOperatorã¤ã³ã¿ãã§ã¼ã¹ã使ããList#replaceAllã
{{#tags}}- {{label}}
{{/tags}}