List of usage examples for com.google.common.base CaseFormat UPPER_UNDERSCORE
CaseFormat UPPER_UNDERSCORE
To view the source code for com.google.common.base CaseFormat UPPER_UNDERSCORE.
Click Source Link
From source file:com.opengamma.strata.product.option.KnockType.java
/** * Obtains an instance from the specified unique name. * // w w w . j a 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 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. * //ww w.j ava 2 s . c om * @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.opengamma.strata.market.model.SabrParameterType.java
/** * Obtains an instance from the specified unique name. * //from w ww . j a v a 2 s . co m * @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)); }
From source file:com.opengamma.strata.product.cms.CmsPeriodType.java
/** * Obtains the type from a unique name.//from w w w. j a v a2 s. co m * * @param uniqueName the unique name * @return the type * @throws IllegalArgumentException if the name is not known */ @FromString public static CmsPeriodType of(String uniqueName) { ArgChecker.notNull(uniqueName, "uniqueName"); return valueOf(CaseFormat.UPPER_CAMEL.to(CaseFormat.UPPER_UNDERSCORE, uniqueName)); }
From source file:com.opengamma.basics.PutCall.java
/** * Obtains the type from a unique name.// www .jav a2s .c om * * @param uniqueName the unique name * @return the type * @throws IllegalArgumentException if the name is not known */ @FromString public static PutCall 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.type.AccrualStart.java
/** * Obtains an instance from the specified unique name. * /*from w w w . j a v a 2s . co m*/ * @param uniqueName the unique name * @return the type * @throws IllegalArgumentException if the name is not known */ @FromString public static AccrualStart of(String uniqueName) { ArgChecker.notNull(uniqueName, "uniqueName"); return valueOf(CaseFormat.UPPER_CAMEL.to(CaseFormat.UPPER_UNDERSCORE, uniqueName)); }
From source file:org.jclouds.ecs.domain.IpState.java
public static IpState fromValue(String state) { try {//from w w w .j a va 2 s . c o m return valueOf(CaseFormat.UPPER_CAMEL.to(CaseFormat.UPPER_UNDERSCORE, checkNotNull(state, "state"))); } catch (IllegalArgumentException e) { return UNRECOGNIZED; } }
From source file:com.opengamma.basics.LongShort.java
/** * Obtains the type from a unique name./*from w w w . j a va 2 s . c o m*/ * * @param uniqueName the unique name * @return the type * @throws IllegalArgumentException if the name is not known */ @FromString public static LongShort of(String uniqueName) { ArgChecker.notNull(uniqueName, "uniqueName"); return valueOf(CaseFormat.UPPER_CAMEL.to(CaseFormat.UPPER_UNDERSCORE, uniqueName)); }
From source file:com.opengamma.strata.market.curve.CurveNodeClashAction.java
/** * Obtains an instance from the specified unique name. * /* ww w .jav a 2 s. c o m*/ * @param uniqueName the unique name * @return the type * @throws IllegalArgumentException if the name is not known */ @FromString public static CurveNodeClashAction of(String uniqueName) { ArgChecker.notNull(uniqueName, "uniqueName"); return valueOf(CaseFormat.UPPER_CAMEL.to(CaseFormat.UPPER_UNDERSCORE, uniqueName)); }
From source file:com.opengamma.strata.product.common.PayReceive.java
/** * Obtains an instance from the specified unique name. * /*w w w. j a va2s .c om*/ * @param uniqueName the unique name * @return the type * @throws IllegalArgumentException if the name is not known */ @FromString public static PayReceive of(String uniqueName) { ArgChecker.notNull(uniqueName, "uniqueName"); return valueOf(CaseFormat.UPPER_CAMEL.to(CaseFormat.UPPER_UNDERSCORE, uniqueName)); }