docs: MatchingCacheKey
This commit is contained in:
parent
5ebc5b6244
commit
8926c84ca9
@ -31,10 +31,11 @@ class MatchingCacheKey {
|
|||||||
mHash = key.mHash;
|
mHash = key.mHash;
|
||||||
}
|
}
|
||||||
|
|
||||||
// set temporary values for comparison
|
/** set temporary values for comparison */
|
||||||
boolean set(TagSet tags, MatchingCacheKey compare) {
|
boolean set(TagSet tags, MatchingCacheKey compare) {
|
||||||
int numTags = tags.numTags;
|
int numTags = tags.numTags;
|
||||||
|
|
||||||
|
/* Test if tags are equal to previous query */
|
||||||
if (compare != null && numTags == compare.mTags.length) {
|
if (compare != null && numTags == compare.mTags.length) {
|
||||||
int i = 0;
|
int i = 0;
|
||||||
for (; i < numTags; i++) {
|
for (; i < numTags; i++) {
|
||||||
@ -48,7 +49,9 @@ class MatchingCacheKey {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
// need to clone tags as they belong to TileDataSource
|
/* Clone tags as they belong to TileDataSource.
|
||||||
|
* Also needed for comparison if previous tags
|
||||||
|
* were equal. */
|
||||||
mTags = new Tag[numTags];
|
mTags = new Tag[numTags];
|
||||||
|
|
||||||
int result = 7;
|
int result = 7;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user