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

com.sportradar.unifiedodds.sdk.caching.NamedValueCache Maven / Gradle / Ivy

/*
 * Copyright (C) Sportradar AG. See LICENSE for full license governing this code
 */

package com.sportradar.unifiedodds.sdk.caching;

import com.sportradar.unifiedodds.sdk.entities.NamedValue;

/**
 * Defines the available methods used to handle {@link NamedValue} caching
 */
public interface NamedValueCache {
    /**
     * Gets the {@link NamedValue} specified by the provided id
     *
     * @param id - the id of the {@link NamedValue} to retrieve.
     * @return - the {@link NamedValue} specified by the provided id
     */
    NamedValue getNamedValue(int id);

    /**
     * Determines if the specified id exists in the current cache instance
     *
     * @param id - the id that should be checked
     * @return true if the value is defined; otherwise false
     */
    boolean isValueDefined(int id);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy