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

com.yahoo.imapnio.async.data.SearchResult Maven / Gradle / Ivy

The newest version!
package com.yahoo.imapnio.async.data;

import java.util.List;

import javax.annotation.Nonnull;
import javax.annotation.Nullable;

/**
 * This class provides the list of message sequence numbers from search command response.
 */
public class SearchResult {
    /** Search command response sequence number, could be message sequence or UID. */
    @Nonnull
    private final List msgNumbers;

    /**
     * Initializes a {@link SearchResult} object with message number collection.
     *
     * @param msgNumbers collection of message number from search command result
     */
    public SearchResult(@Nonnull final List msgNumbers) {
        this.msgNumbers = msgNumbers;
    }

    /**
     * @return message number collection from search command or UID search command result
     */
    @Nullable
    public List getMessageNumbers() {
        return this.msgNumbers;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy