Method trim()
Return type: java.lang.String
Member of: java.lang.String
[api documentation ] [ main menu]

Examples of how the element is used (one line per example):
[add your own example]

1 return (s == null || s.trim().length() == 0);
2 return foo == null || foo.trim().length() == 0;
3 text = text.trim();
4 config.setAttribute(VMARGS, fVmArgsText.getText().trim());
5 return string != null && string.trim().length() > 0;
6 return Integer.parseInt(props.getProperty(name, "0").trim());
7 return field.getText().trim().length() == 0;
8 return node.getText().trim().length() == 0;
9 return name.trim().startsWith("${") && name.trim().endsWith("}");
10 data = new String(s.toString()).trim();
11 return createSpecification(c, c.getMetaData().getDatabaseProductName().trim());
12 list.add(new File(t.nextToken().trim()));
13 if (keyStoreType == null || keyStoreType.trim().length() == 0) {throw new IllegalArgumentException("Invalid KeyStore type");}
14 s = s.trim();
15 return(s.equals("1") || s.trim().equalsIgnoreCase("true"));
16 this.prefix = prefix.trim();
17 if (contentId != null && contentId.trim().length() != 0)
18 if ((validationQuery != null) && (validationQuery.trim().length() > 0)) {
19 return(!this.getText().trim().equals(""));
20 s = s.substring(s.indexOf("/")+1).trim();
Java and J2SE are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other Countries.