com.yahoo.imapnio.async.data.EnableResult Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of imapnio.core Show documentation
Show all versions of imapnio.core Show documentation
imapnio component ${project.name}
The newest version!
package com.yahoo.imapnio.async.data;
import java.util.Collections;
import java.util.Set;
import javax.annotation.Nonnull;
/**
* This class provides the functionality to allow callers to obtain Enable command result given by imap server.
*/
public final class EnableResult {
/** EnableResult list. */
private final Set capabilities;
/**
* Initializes the {@link EnableResult} class.
*
* @param capas set of enabled capability name with its values if existing
*/
public EnableResult(@Nonnull final Set capas) {
this.capabilities = Collections.unmodifiableSet(capas);
}
/**
* Returns the enabled capabilities.
*
* @return the enabled capabilities
*/
public Set getEnabledCapabilities() {
return capabilities;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy