public class StrStripper extends Object implements UnaryOperator<CharSequence>, Serializable
| Constructor and Description |
|---|
StrStripper(CharSequence prefix,
CharSequence suffix,
boolean ignoreCase,
boolean stripAll)
构造
|
| Modifier and Type | Method and Description |
|---|---|
String |
apply(CharSequence charSequence) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitidentitypublic StrStripper(CharSequence prefix, CharSequence suffix, boolean ignoreCase, boolean stripAll)
prefix - 前缀,null忽略suffix - 后缀,null忽略ignoreCase - 是否忽略大小写stripAll - 是否去除全部public String apply(CharSequence charSequence)
apply in interface Function<CharSequence,CharSequence>Copyright © 2025. All rights reserved.