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

javastrava.cache.StravaCacheable Maven / Gradle / Ivy

There is a newer version: 2.0.0-alpha
Show newest version
package javastrava.cache;

import javastrava.api.v3.model.reference.StravaResourceState;

/**
 * 

* Classes implementing {@link StravaCacheable} can be (unsurprisingly) cached via an appropriate {@link StravaCache} implementation. *

* * @author Dan Shannon * * @param The class of the identifier of the cacheable entity */ public interface StravaCacheable { /** * @return The identifier */ public T getId(); /** * @return The resource state of the cacheable entity, used by caching mechanisms to work out whether or not to overwrite data in cache */ public StravaResourceState getResourceState(); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy