diff --git a/httpclient-cache/src/main/java/org/apache/http/impl/client/cache/Variant.java b/httpclient-cache/src/main/java/org/apache/http/impl/client/cache/Variant.java new file mode 100644 index 000000000..dea95b314 --- /dev/null +++ b/httpclient-cache/src/main/java/org/apache/http/impl/client/cache/Variant.java @@ -0,0 +1,29 @@ +package org.apache.http.impl.client.cache; + +import org.apache.http.client.cache.HttpCacheEntry; + +/** Records a set of information describing a cached variant. */ +class Variant { + + private final String variantKey; + private final String cacheKey; + private final HttpCacheEntry entry; + + public Variant(String variantKey, String cacheKey, HttpCacheEntry entry) { + this.variantKey = variantKey; + this.cacheKey = cacheKey; + this.entry = entry; + } + + public String getVariantKey() { + return variantKey; + } + + public String getCacheKey() { + return cacheKey; + } + + public HttpCacheEntry getEntry() { + return entry; + } +}