List of usage examples for com.google.common.base CaseFormat UPPER_CAMEL
CaseFormat UPPER_CAMEL
To view the source code for com.google.common.base CaseFormat UPPER_CAMEL.
Click Source Link
From source file:com.opengamma.strata.market.model.MoneynessType.java
/** * Obtains an instance from the specified unique name. * /*from w ww . jav a 2s . c om*/ * @param uniqueName the unique name * @return the type * @throws IllegalArgumentException if the name is not known */ @FromString public static MoneynessType of(String uniqueName) { ArgChecker.notNull(uniqueName, "uniqueName"); return valueOf(CaseFormat.UPPER_CAMEL.to(CaseFormat.UPPER_UNDERSCORE, uniqueName)); }
From source file:org.jclouds.glacier.domain.JobStatus.java
public static JobStatus fromString(String symbol) { return JobStatus.valueOf(CaseFormat.UPPER_CAMEL.to(CaseFormat.UPPER_UNDERSCORE, symbol)); }
From source file:com.opengamma.strata.product.option.BarrierType.java
/** * Obtains an instance from the specified unique name. * //from w ww.ja v a 2s. c o m * @param uniqueName the unique name * @return the type * @throws IllegalArgumentException if the name is not known */ @FromString public static BarrierType of(String uniqueName) { ArgChecker.notNull(uniqueName, "uniqueName"); return valueOf(CaseFormat.UPPER_CAMEL.to(CaseFormat.UPPER_UNDERSCORE, uniqueName)); }
From source file:com.opengamma.strata.product.credit.ReferenceInformationType.java
/** * Obtains the type from a unique name./*w ww . j av a2 s . c o m*/ * * @param uniqueName the unique name * @return the type * @throws IllegalArgumentException if the name is not known */ @FromString public static ReferenceInformationType of(String uniqueName) { ArgChecker.notNull(uniqueName, "uniqueName"); return valueOf(CaseFormat.UPPER_CAMEL.to(CaseFormat.UPPER_UNDERSCORE, uniqueName)); }
From source file:com.opengamma.strata.product.option.KnockType.java
/** * Obtains an instance from the specified unique name. * // w ww .j ava 2 s . c o m * @param uniqueName the unique name * @return the type * @throws IllegalArgumentException if the name is not known */ @FromString public static KnockType of(String uniqueName) { ArgChecker.notNull(uniqueName, "uniqueName"); return valueOf(CaseFormat.UPPER_CAMEL.to(CaseFormat.UPPER_UNDERSCORE, uniqueName)); }
From source file:com.opengamma.strata.collect.io.AsciiTableAlignment.java
/** * Obtains an instance from the specified unique name. * //from ww w .ja v a 2 s . com * @param uniqueName the unique name * @return the type * @throws IllegalArgumentException if the name is not known */ @FromString public static AsciiTableAlignment of(String uniqueName) { ArgChecker.notNull(uniqueName, "uniqueName"); return valueOf(CaseFormat.UPPER_CAMEL.to(CaseFormat.UPPER_UNDERSCORE, uniqueName)); }
From source file:com.facebook.buck.core.rules.type.impl.RuleTypeFactory.java
public static RuleType fromClassName(Class<?> cls) { String result = cls.getSimpleName(); result = MoreStrings.stripPrefix(result, "Abstract").orElse(result); result = MoreStrings.stripSuffix(result, "Description").orElse(result); return RuleType.of(CaseFormat.UPPER_CAMEL.to(CaseFormat.LOWER_UNDERSCORE, result)); }
From source file:org.zalando.baigan.proxy.ProxyUtils.java
public static String dottify(final String text) { if (Strings.isNullOrEmpty(text)) { return NAMESPACE_SEPARATOR; }/*from w w w.ja v a 2 s . co m*/ return CaseFormat.UPPER_CAMEL.to(CaseFormat.LOWER_UNDERSCORE, text).replace("_", NAMESPACE_SEPARATOR); }
From source file:com.facebook.buck.core.model.impl.RuleTypeFactory.java
public static RuleType create(Class<?> cls, RuleType.Kind ruleKind) { String result = cls.getSimpleName(); result = MoreStrings.stripPrefix(result, "Abstract").orElse(result); result = MoreStrings.stripSuffix(result, "Description").orElse(result); return RuleType.of(CaseFormat.UPPER_CAMEL.to(CaseFormat.LOWER_UNDERSCORE, result), ruleKind); }
From source file:com.opengamma.strata.market.model.SabrParameterType.java
/** * Obtains an instance from the specified unique name. * //from w ww .j a v a2 s.com * @param uniqueName the unique name * @return the type * @throws IllegalArgumentException if the name is not known */ @FromString public static SabrParameterType of(String uniqueName) { ArgChecker.notNull(uniqueName, "uniqueName"); return valueOf(CaseFormat.UPPER_CAMEL.to(CaseFormat.UPPER_UNDERSCORE, uniqueName)); }