Package org.sonar.java.caching
Class JavaReadCacheImpl
java.lang.Object
org.sonar.java.caching.JavaReadCacheImpl
- All Implemented Interfaces:
JavaReadCache
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
JavaReadCacheImpl
public JavaReadCacheImpl(org.sonar.api.batch.sensor.cache.ReadCache readCache)
-
-
Method Details
-
read
Description copied from interface:JavaReadCache
Returns an input stream for the data cached with the providedkey
. It is the responsibility of the caller to close the stream.- Specified by:
read
in interfaceJavaReadCache
-
readBytes
- Specified by:
readBytes
in interfaceJavaReadCache
- Returns:
- the array of bytes stored for the given key, if any.
null
otherwise.
-
contains
Description copied from interface:JavaReadCache
Checks whether the cache contains the providedkey
.- Specified by:
contains
in interfaceJavaReadCache
-
equals
-
hashCode
public int hashCode()
-