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

com.hubspot.imap.protocol.folder.FolderMetadata Maven / Gradle / Ivy

There is a newer version: 0.6.1
Show newest version
package com.hubspot.imap.protocol.folder;

import java.util.ArrayList;
import java.util.Collection;
import java.util.List;

public interface FolderMetadata {
  List getAttributes();
  String getContext();
  String getName();

  class Builder implements FolderMetadata {

    private final List attributes = new ArrayList<>();
    private String context;
    private String name;

    public FolderMetadata build() {
      return this;
    }

    public List getAttributes() {
      return this.attributes;
    }

    public Builder addAttribute(FolderAttribute attribute) {
      attributes.add(attribute);
      return this;
    }

    public Builder addAllAttributes(Collection attributes) {
      this.attributes.addAll(attributes);
      return this;
    }

    public String getContext() {
      return this.context;
    }

    public Builder setContext(String context) {
      this.context = context;
      return this;
    }

    public String getName() {
      return this.name;
    }

    public Builder setName(String name) {
      this.name = name;
      return this;
    }
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy