1 16 package org.apache.cocoon.caching; 17 18 import java.util.Map ; 19 20 27 public final class ParametersCacheValidity 28 implements CacheValidity { 29 30 private Map map; 31 32 35 public ParametersCacheValidity(Map map) { 36 this.map = map; 37 } 38 39 public boolean isValid(CacheValidity validity) { 40 if (validity instanceof ParametersCacheValidity) { 41 return this.map.toString().equals(((ParametersCacheValidity)validity).getParameters().toString()); 42 } 43 return false; 44 } 45 46 public Map getParameters() { 47 return this.map; 48 } 49 50 public String toString() { 51 return "Parameters Validity[" + this.map + ']'; 52 } 53 } 54 | Popular Tags |