Skip to content

Commit

Permalink
Add new constructor for making a filtered ArrayList<dObject> back int…
Browse files Browse the repository at this point in the history
…o a dList.
  • Loading branch information
aufdemrand committed Jul 6, 2013
1 parent b3873b4 commit e7e4f23
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/net/aufdemrand/denizen/objects/dList.java
Expand Up @@ -84,6 +84,10 @@ public static boolean matches(String arg) {
// Constructors
//////////

public dList(ArrayList<dObject> dObjectList) {
for (dObject obj : dObjectList)
add(obj.identify());
}

public dList(String items) {
addAll(Arrays.asList(items.split("\\|")));
Expand Down

0 comments on commit e7e4f23

Please sign in to comment.