List of usage examples for org.apache.commons.lang3 StringUtils lowerCase
public static String lowerCase(final String str)
Converts a String to lower case as per String#toLowerCase() .
A null input String returns null .
StringUtils.lowerCase(null) = null StringUtils.lowerCase("") = "" StringUtils.lowerCase("aBc") = "abc"
Note: As described in the documentation for String#toLowerCase() , the result of this method is affected by the current locale.
From source file:com.chessix.vas.service.AccountService.java
public String getAccountId(final String accountRefId) { return StringUtils.lowerCase(StringUtils.trimToEmpty(accountRefId)); }
From source file:io.wcm.maven.plugins.i18n.OutputFormat.java
/** * @return File extension */ public String getFileExtension() { return StringUtils.lowerCase(this.name()); }
From source file:kenh.expl.functions.LowerCase.java
public String process(String str) { return StringUtils.lowerCase(str); }
From source file:jp.terasoluna.fw.file.annotation.StringConverterToLowerCase.java
/** * ??? * @param s ??? * @return ????? */ @Override public String convert(String s) { return StringUtils.lowerCase(s); }
From source file:ch.cyberduck.core.local.Application.java
public Application(final String identifier, final String name) { this.identifier = StringUtils.lowerCase(identifier); this.name = name; }
From source file:com.norconex.collector.http.delay.impl.SiteDelay.java
public void delay(long expectedDelayNanos, String url) { if (expectedDelayNanos <= 0) { return;//from ww w .jav a2 s.co m } String site = StringUtils.lowerCase(url.replaceFirst("(.*?//.*?)(/.*)|$]", "$1")); SleepState sleepState = null; try { synchronized (siteLastHitNanos) { sleepState = siteLastHitNanos.get(site); if (sleepState == null) { siteLastHitNanos.put(site, new SleepState()); return; } while (sleepState.sleeping) { Sleeper.sleepNanos(Math.min(TINY_SLEEP_MS, expectedDelayNanos)); } sleepState.sleeping = true; } delay(expectedDelayNanos, sleepState.lastHitEpochNanos); sleepState.lastHitEpochNanos = System.nanoTime(); } finally { if (sleepState != null) { sleepState.sleeping = false; } } }
From source file:com.threewks.thundr.view.negotiating.ViewNegotiatorRegistryImpl.java
public static String normaliseContentType(String contentType) { contentType = StringUtils.lowerCase(StringUtils.trimToEmpty(contentType)); return contentType; }
From source file:com.hubspot.jinjava.lib.SimpleLibrary.java
public T fetch(String item) { return lib.get(StringUtils.lowerCase(item)); }
From source file:com.adobe.acs.commons.util.datadefinitions.impl.JcrValidNameDefinitionBuilderImpl.java
@Override public final ResourceDefinition convert(final String data) { final String name = StringUtils.lowerCase(JcrUtil.createValidName(StringUtils.strip(data))); final BasicResourceDefinition dataDefinition = new BasicResourceDefinition(name); dataDefinition.setTitle(data);/*from ww w . j a v a 2s. com*/ return dataDefinition; }
From source file:com.threewks.thundr.transformer.discrete.ObjectToEnum.java
@SuppressWarnings("unchecked") @Override//from www. j a va 2s .co m public E from(From from) { if (from == null) { return null; } String fromString = StringUtils.trimToEmpty(StringUtils.lowerCase(from.toString())); Map<String, Object> cache = enumValueCache.get(type); return (E) cache.get(fromString); }