br.com.moip.resource.ScopePermissionList Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-sdk Show documentation
Show all versions of java-sdk Show documentation
Java SDK for Moip v2 APIs
package br.com.moip.resource;
import java.util.ArrayList;
public class ScopePermissionList extends ArrayList {
public ScopePermissionList(ScopePermission... scopes) {
for (ScopePermission scope : scopes) {
this.add(scope);
}
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("");
for (int i = 0, il = this.size(); i < il; i++) {
if (i > 0)
sb.append(",");
sb.append(this.get(i));
}
return sb.toString();
}
}