SigStringEditor
UI에 사용되는 String을 변환하는 유틸리티 입니다.
Usage
String text = "%player%의 돈: %test%"
SigStringEditor editor = new SigStringEditor();
editor.replace("%player%", "qsef1256");
editor.replace("%money%", "1000");
editor.of(new CustomStringEditor()); // can create custom editor
String result = editor.edit(text);
// result: qsef1256의 돈: 1000SigStringEditor#ofReplace:String#replace와 동일한 기능을 지원합니다.
String result = SigStringEditor
.ofReplace("%player%", "qsef1256")
.edit("플레이어: %player%");Feature
SigStringEditor#of: 특정한StringEditor를 적용해서 텍스트를 변환합니다.
Last updated