Add removeAll and merge methods.
This commit is contained in:
parent
12f345dab4
commit
48e1150886
1 changed files with 31 additions and 0 deletions
|
@ -318,6 +318,37 @@ public class StringList extends ArrayList<String>
|
|||
return (result);
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
public StringList merge()
|
||||
{
|
||||
StringList result;
|
||||
|
||||
String merge = this.toString();
|
||||
|
||||
removeAll();
|
||||
add(merge);
|
||||
|
||||
//
|
||||
result = this;
|
||||
return result;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
public StringList removeAll()
|
||||
{
|
||||
StringList result;
|
||||
|
||||
removeRange(0, this.size() - 1);
|
||||
|
||||
//
|
||||
result = this;
|
||||
return result;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue