All Downloads are FREE. Search and download functionalities are using the official Maven repository.

br.com.moip.resource.ScopePermissionList Maven / Gradle / Ivy

There is a newer version: 4.7.6
Show newest version
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();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy