Add removeAll and merge methods.

This commit is contained in:
Christian P. MOMON 2013-07-19 02:33:25 +02:00
parent 12f345dab4
commit 48e1150886

View file

@ -318,6 +318,37 @@ public class StringList extends ArrayList<String>
return (result); 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;
}
/** /**
* *
*/ */