[API] Add ImString#clear method
This commit is contained in:
1 parent
3706927ef5
commit
767b107a7b
1 file changed
+7
@@ -161,6 +161,13 @@ public final class ImString implements Cloneable {
|
||||
return !isEmpty();
|
||||
}
|
||||
|
||||
/**
|
||||
* Clears underlying string by setting empty value.
|
||||
*/
|
||||
public void clear() {
|
||||
set("");
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return get();
|
||||
|
||||
Reference in new issue
Block a user