Subversion Repositories SmartDukaan

Rev

Rev 24072 | Rev 24264 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 24072 Rev 24087
Line 151... Line 151...
151
		}
151
		}
152
		if(this.getColor() != null && !this.getColor().isEmpty() && !this.getColor().trim().equals("f_")){
152
		if(this.getColor() != null && !this.getColor().isEmpty() && !this.getColor().trim().equals("f_")){
153
			itemString.append(" ");
153
			itemString.append(" ");
154
			itemString.append(this.getColor().trim());
154
			itemString.append(this.getColor().trim());
155
		}
155
		}
156
		return itemString.toString();
156
		return itemString.toString().replaceAll("\\s+", " ").trim();
157
	}
157
	}
158
	
158
	
159
	public String getItemDescriptionNoColor(){
159
	public String getItemDescriptionNoColor(){
160
		StringBuilder itemString = new StringBuilder();
160
		StringBuilder itemString = new StringBuilder();
161
		if(this.getBrand() != null && !this.getBrand().isEmpty()){
161
		if(this.getBrand() != null && !this.getBrand().isEmpty()){
Line 167... Line 167...
167
		}
167
		}
168
		if(this.getModelNumber() != null && !this.getModelNumber().isEmpty()){
168
		if(this.getModelNumber() != null && !this.getModelNumber().isEmpty()){
169
			itemString.append(" ");
169
			itemString.append(" ");
170
			itemString.append(this.getModelNumber().trim());
170
			itemString.append(this.getModelNumber().trim());
171
		}
171
		}
-
 
172
		
172
		return itemString.toString();
173
		return itemString.toString().replaceAll("\\s+", " ").trim();
173
	}
174
	}
174
	
175
	
175
	@Override
176
	@Override
176
	public int hashCode() {
177
	public int hashCode() {
177
		final int prime = 31;
178
		final int prime = 31;