Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/FLYSArtifact.java @ 742:c09c9e05ecfa
Removed trailing whitespace.
flys-artifacts/trunk@2243 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Sun, 26 Jun 2011 17:18:59 +0000 |
parents | e54203e52097 |
children | 9e813e9137a5 |
comparison
equal
deleted
inserted
replaced
741:e54203e52097 | 742:c09c9e05ecfa |
---|---|
1062 | 1062 |
1063 for (Map.Entry<String, StateData> entry: entries) { | 1063 for (Map.Entry<String, StateData> entry: entries) { |
1064 String key = entry.getKey(); | 1064 String key = entry.getKey(); |
1065 Object value = entry.getValue().getValue(); | 1065 Object value = entry.getValue().getValue(); |
1066 | 1066 |
1067 hash ^= ((long)key.hashCode() << shift) | 1067 hash ^= ((long)key.hashCode() << shift) |
1068 | ((long)value.hashCode() << (shift + 3)); | 1068 | ((long)value.hashCode() << (shift + 3)); |
1069 shift += 2; | 1069 shift += 2; |
1070 } | 1070 } |
1071 | 1071 |
1072 return getCurrentStateId() + hash; | 1072 return getCurrentStateId() + hash; |
1079 * hash(). | 1079 * hash(). |
1080 * | 1080 * |
1081 * @param context The CallContext. | 1081 * @param context The CallContext. |
1082 */ | 1082 */ |
1083 public Object compute( | 1083 public Object compute( |
1084 CallContext context, | 1084 CallContext context, |
1085 ComputeType type, | 1085 ComputeType type, |
1086 boolean generateFacets | 1086 boolean generateFacets |
1087 ) { | 1087 ) { |
1088 return compute(context, hash(), type, generateFacets); | 1088 return compute(context, hash(), type, generateFacets); |
1089 } | 1089 } |
1090 | 1090 |
1101 * @return the computed data. | 1101 * @return the computed data. |
1102 */ | 1102 */ |
1103 public Object compute( | 1103 public Object compute( |
1104 CallContext context, | 1104 CallContext context, |
1105 String hash, | 1105 String hash, |
1106 ComputeType type, | 1106 ComputeType type, |
1107 boolean generateFacets | 1107 boolean generateFacets |
1108 ) { | 1108 ) { |
1109 DefaultState current = (DefaultState) getCurrentState(context); | 1109 DefaultState current = (DefaultState) getCurrentState(context); |
1110 return compute(context, hash, current, type, generateFacets); | 1110 return compute(context, hash, current, type, generateFacets); |
1111 } | 1111 } |
1112 | 1112 |
1113 public Object compute( | 1113 public Object compute( |
1114 CallContext context, | 1114 CallContext context, |
1115 String stateID, | 1115 String stateID, |
1116 String hash, | 1116 String hash, |
1117 ComputeType type, | 1117 ComputeType type, |
1118 boolean generateFacets | 1118 boolean generateFacets |
1119 ) { | 1119 ) { |
1120 DefaultState current = stateID == null | 1120 DefaultState current = stateID == null |
1121 ? (DefaultState)getCurrentState(context) | 1121 ? (DefaultState)getCurrentState(context) |
1122 : (DefaultState)getState(context, stateID); | 1122 : (DefaultState)getState(context, stateID); |