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, wait
identity
public 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.