Code example for Set

Methods: contains

0
    } 
 
    public TaskDetails create(final Task task) {
        final String path;
        Project project = task.getProject();
        if (projects.contains(project)) {
            path = this.project.relativeProjectPath(task.getPath());
        } else { 
            path = task.getPath();
        } 
        return new TaskDetails() { 
            public Path getPath() { 
                return Path.path(path);
            } 
 
            public String getDescription() {
                return task.getDescription();
            } 
 
            public Set<TaskDetails> getDependencies() {