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

com.payneteasy.superfly.common.store.StringStore Maven / Gradle / Ivy

There is a newer version: 1.7-32
Show newest version
package com.payneteasy.superfly.common.store;

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

/**
 * Stores strings. Multiple equal instances cannot be stored here.
 * 
 * @author Roman Puchkovskiy
 */
public interface StringStore {
    /**
     * Returns true if the given string exists in the store.
     *
     * @param key    string to check
     * @return true if exists
     */
    boolean exists(String key);
    /**
     * Sets strings to be stored.
     *
     * @param objects    strings
     */
    void setObjects(List objects);
    /**
     * Returns an unmodifiable collection of stored strings.
     *
     * @return strings
     */
    Collection getObjects();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy