- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
private String compileOwnerName() {
return Joiner.on(' ').skipNulls().
String firstName = ownerFirstName.getValue();
String lastName = ownerLastName.getValue();
final StringBuilder buffer = new StringBuilder();
boolean first = true;
if (firstName != null) {
firstName = firstName.trim();
if (!"".equals(firstName)) {
buffer.append(firstName);
first = false;
}
}
if (lastName != null) {
lastName = lastName.trim();
if (!"".equals(lastName)) {
if (!first) {
buffer.append(" ");
}
buffer.append(lastName);
}
}
return buffer.toString();
}
someone 05.07.2012 12:02 # 0
rat4 05.07.2012 12:57 # +6
Что-что?
someone 05.07.2012 14:01 # 0
roman-kashitsyn 05.07.2012 14:08 # +2
Lure Of Chaos 05.07.2012 14:08 # 0
someone 05.07.2012 15:25 # +3