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

com.structurizr.api.Workspaces Maven / Gradle / Ivy

There is a newer version: 3.1.0
Show newest version
package com.structurizr.api;

import java.util.ArrayList;
import java.util.Comparator;
import java.util.List;

class Workspaces {

    private List workspaces;

    Workspaces() {
    }

    List getWorkspaces() {
        return new ArrayList<>(workspaces);
    }

    void setWorkspaces(List workspaces) {
        if (workspaces == null) {
            this.workspaces = new ArrayList<>();
        } else {
            this.workspaces = workspaces;
        }

        this.workspaces.sort(Comparator.comparingInt(WorkspaceMetadata::getId));
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy