- Timestamp:
- 07/07/11 11:04:27 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/EventBenchConsole/src/de/ugoe/cs/eventbench/web/data/WebRequest.java
r90 r111 14 14 15 15 List<String> postVars; 16 List<String> getVars; 16 17 17 18 String targetUri; 18 19 19 public WebRequest(String uri, List<String> postVars ) {20 public WebRequest(String uri, List<String> postVars, List<String> getVars) { 20 21 targetUri = uri; 21 22 this.postVars = new ArrayList<String>(postVars); // defensive copy 23 this.getVars = new ArrayList<String>(getVars); 22 24 } 23 25 … … 33 35 return null; 34 36 } 37 38 @Override 39 public boolean equals(Object other) { 40 if( this==other ) { 41 return true; 42 } 43 if( other instanceof WebRequest ) { 44 return targetUri.equals(((WebRequest) other).targetUri) && postVars.equals(((WebRequest) other).postVars); 45 } 46 return false; 47 } 48 49 @Override 50 public int hashCode() { 51 int multiplier = 17; 52 int hash = 42; 53 54 hash = multiplier * hash + targetUri.hashCode(); 55 hash = multiplier * hash + postVars.hashCode(); 56 57 return hash; 58 } 35 59 36 60 }
Note: See TracChangeset
for help on using the changeset viewer.