List of usage examples for org.apache.commons.lang3 StringUtils EMPTY
String EMPTY
To view the source code for org.apache.commons.lang3 StringUtils EMPTY.
Click Source Link
From source file:com.github.haixing_hu.ilibrary.model.FieldTemplateBuilder.java
public FieldTemplateBuilder() { name = StringUtils.EMPTY; type = DataType.STRING; multiple = false; }
From source file:com.github.lburgazzoli.sandbox.jpa.openjpa.OpenJpaItem.java
public OpenJpaItem() { this(StringUtils.EMPTY, StringUtils.EMPTY); }
From source file:de.micromata.genome.db.jpa.history.impl.ToStringPropertyConverter.java
@Override protected String convertToString(Object value, ColumnMetadata pd) { return value == null ? StringUtils.EMPTY : value.toString(); }
From source file:com.github.lburgazzoli.sandbox.jpa.hibernate.HibernateJpaItem.java
public HibernateJpaItem() { this(StringUtils.EMPTY, StringUtils.EMPTY); }
From source file:de.micromata.genome.logging.LogAttribute.java
/** * Shorten./*from w w w. j a va 2 s. co m*/ * * @param val the val * @param size the size * @return the string */ public static String shorten(String val, int size) { if (val == null) { return StringUtils.EMPTY; } if (val.length() > size) { return val.substring(0, size); } else { return val; } }
From source file:com.github.lburgazzoli.examples.karaf.jpa.batoo.data.Item.java
public Item() { this(StringUtils.EMPTY, StringUtils.EMPTY); }
From source file:ch.cyberduck.core.RootProviderHelpService.java
public String help() { return this.help(StringUtils.EMPTY); }
From source file:com.cognifide.aet.job.common.comparators.source.visitors.MarkupVisitor.java
@Override public void visit(Node node) { if (node instanceof TextNode || node instanceof Comment || node instanceof DataNode) { node.replaceWith(new TextNode(StringUtils.EMPTY, node.baseUri())); }// w ww. ja va 2s.c o m }
From source file:candr.yoclip.OptionUtils.java
/** * Combines an array of strings into a single string. Multiple strings are joined together separated by a space * character unless proceeded by an {@link Options#LINE_BREAK Options} line break.<p/> * As an example the string array <code>String[] example = { "Hello", "World!" }</code> will result * in the string <code>"Hello World!"</code>. The string array <code>String[] example = { "Hello\n", * "World!" }</code> will result in the string <code>"Hello${nl}World!"</code> (where ${nl} is the OS * dependent new line character string). * * @param descriptions The strings that will be combined. * @return a string created from the array of strings. *//*from w w w . j a v a 2s . c om*/ public static String combine(final String[] descriptions) { if (ArrayUtils.isEmpty(descriptions)) { return StringUtils.EMPTY; } if (descriptions.length == 1) { return descriptions[0]; } final StrBuilder descriptionBuilder = new StrBuilder(descriptions[0]); for (int i = 1; i < descriptions.length; i++) { if (!descriptions[i].startsWith(Options.LINE_BREAK)) { final String prior = StringUtils.isEmpty(descriptions[i - 1]) ? StringUtils.EMPTY : descriptions[i - 1]; if (!prior.endsWith(Options.LINE_BREAK)) { descriptionBuilder.append(' '); } } descriptionBuilder.append(descriptions[i]); } return descriptionBuilder.toString(); }
From source file:io.thekraken.grok.configuration.model.Input.java
public Input() { type = StringUtils.EMPTY; location = StringUtils.EMPTY; }