List of usage examples for java.lang Short toString
public static String toString(short s)
From source file:net.sourceforge.msscodefactory.cfcrm.v2_0.CFCrm.CFCrmISOCountryCurrencyPKey.java
public String toString() { String ret = "<CFCrmISOCountryCurrencyPKey" + " RequiredISOCountryId=" + "\"" + Short.toString(getRequiredISOCountryId()) + "\"" + " RequiredISOCurrencyId=" + "\"" + Short.toString(getRequiredISOCurrencyId()) + "\"" + "/>"; return (ret); }
From source file:net.sourceforge.msscodefactory.cfcrm.v2_0.CFCrm.CFCrmISOCountryLanguagePKey.java
public String toString() { String ret = "<CFCrmISOCountryLanguagePKey" + " RequiredISOCountryId=" + "\"" + Short.toString(getRequiredISOCountryId()) + "\"" + " RequiredISOLanguageId=" + "\"" + Short.toString(getRequiredISOLanguageId()) + "\"" + "/>"; return (ret); }
From source file:net.sourceforge.msscodefactory.cfinternet.v2_0.CFInternet.CFInternetISOCountryCurrencyPKey.java
public String toString() { String ret = "<CFInternetISOCountryCurrencyPKey" + " RequiredISOCountryId=" + "\"" + Short.toString(getRequiredISOCountryId()) + "\"" + " RequiredISOCurrencyId=" + "\"" + Short.toString(getRequiredISOCurrencyId()) + "\"" + "/>"; return (ret); }
From source file:net.sourceforge.msscodefactory.cfinternet.v2_0.CFInternet.CFInternetISOCountryLanguagePKey.java
public String toString() { String ret = "<CFInternetISOCountryLanguagePKey" + " RequiredISOCountryId=" + "\"" + Short.toString(getRequiredISOCountryId()) + "\"" + " RequiredISOLanguageId=" + "\"" + Short.toString(getRequiredISOLanguageId()) + "\"" + "/>"; return (ret); }
From source file:com.navercorp.pinpoint.profiler.modifier.connector.httpclient4.interceptor.AbstractHttpRequestExecuteWithDivergence.java
public void before2(Object target, Object[] args) { if (isDebug) { logger.beforeInterceptor(target, args); }//from w w w . j av a 2 s . co m final Trace trace = traceContext.currentRawTraceObject(); if (trace == null) { return; } final HttpRequest httpRequest = getHttpRequest(args); final boolean sampling = trace.canSampled(); if (!sampling) { if (isDebug) { logger.debug("set Sampling flag=false"); } if (httpRequest != null) { httpRequest.setHeader(Header.HTTP_SAMPLED.toString(), SamplingFlagUtils.SAMPLING_RATE_FALSE); } return; } trace.traceBlockBegin(); trace.markBeforeTime(); TraceId nextId = trace.getTraceId().getNextTraceId(); trace.recordNextSpanId(nextId.getSpanId()); trace.recordServiceType(ServiceType.HTTP_CLIENT); if (httpRequest != null) { httpRequest.setHeader(Header.HTTP_TRACE_ID.toString(), nextId.getTransactionId()); httpRequest.setHeader(Header.HTTP_SPAN_ID.toString(), String.valueOf(nextId.getSpanId())); httpRequest.setHeader(Header.HTTP_PARENT_SPAN_ID.toString(), String.valueOf(nextId.getParentSpanId())); httpRequest.setHeader(Header.HTTP_FLAGS.toString(), String.valueOf(nextId.getFlags())); httpRequest.setHeader(Header.HTTP_PARENT_APPLICATION_NAME.toString(), traceContext.getApplicationName()); httpRequest.setHeader(Header.HTTP_PARENT_APPLICATION_TYPE.toString(), Short.toString(traceContext.getServerTypeCode())); } }
From source file:com.swordlord.jalapeno.datarow.DataRowBase.java
public String getPropertyAsStringForce(String strKey) { Object obj = getProperty(strKey); if (obj == null) { LOG.error("property '" + strKey + "' is unknown"); return ""; } else {//from w ww. ja va 2s .c o m if (obj instanceof String) { return (String) obj; } else if (obj instanceof Double) { return Double.toString((Double) obj); } else if (obj instanceof Integer) { return Integer.toString((Integer) obj); } else if (obj instanceof Long) { return Long.toString((Long) obj); } else if (obj instanceof Short) { return Short.toString((Short) obj); } else if (obj instanceof UUID) { return ((UUID) obj).toString(); } else { return (String) getProperty(strKey); } } }
From source file:jp.terasoluna.fw.util.ConvertUtil.java
/** * <code>value</code>??????? * ?<code>String</code>????<code>List</code>?? * ?/*from ww w.j ava 2 s. co m*/ * * @param value ?? * @return ??????????<code>List</code> * ??????<code>value</code>???? */ public static Object convertPrimitiveArrayToList(Object value) { if (value == null) { return value; } Class<?> type = value.getClass().getComponentType(); // value??????? if (type == null) { return value; } // ????????? if (!type.isPrimitive()) { return value; } List<Object> list = new ArrayList<Object>(); if (value instanceof boolean[]) { for (boolean data : (boolean[]) value) { // String??????? list.add(data); } } else if (value instanceof byte[]) { for (byte data : (byte[]) value) { list.add(Byte.toString(data)); } } else if (value instanceof char[]) { for (char data : (char[]) value) { list.add(Character.toString(data)); } } else if (value instanceof double[]) { for (double data : (double[]) value) { list.add(Double.toString(data)); } } else if (value instanceof float[]) { for (float data : (float[]) value) { list.add(Float.toString(data)); } } else if (value instanceof int[]) { for (int data : (int[]) value) { list.add(Integer.toString(data)); } } else if (value instanceof long[]) { for (long data : (long[]) value) { list.add(Long.toString(data)); } } else if (value instanceof short[]) { for (short data : (short[]) value) { list.add(Short.toString(data)); } } return list; }
From source file:net.sourceforge.msscodefactory.cfasterisk.v2_0.CFAst.CFAstISOCountryCurrencyPKey.java
public String toString() { String ret = "<CFAstISOCountryCurrencyPKey" + " RequiredISOCountryId=" + "\"" + Short.toString(getRequiredISOCountryId()) + "\"" + " RequiredISOCurrencyId=" + "\"" + Short.toString(getRequiredISOCurrencyId()) + "\"" + "/>"; return (ret); }
From source file:net.sourceforge.msscodefactory.cfasterisk.v2_0.CFAst.CFAstISOCountryLanguagePKey.java
public String toString() { String ret = "<CFAstISOCountryLanguagePKey" + " RequiredISOCountryId=" + "\"" + Short.toString(getRequiredISOCountryId()) + "\"" + " RequiredISOLanguageId=" + "\"" + Short.toString(getRequiredISOLanguageId()) + "\"" + "/>"; return (ret); }
From source file:net.sourceforge.msscodefactory.cffreeswitch.v2_0.CFFsw.CFFswISOCountryCurrencyPKey.java
public String toString() { String ret = "<CFFswISOCountryCurrencyPKey" + " RequiredISOCountryId=" + "\"" + Short.toString(getRequiredISOCountryId()) + "\"" + " RequiredISOCurrencyId=" + "\"" + Short.toString(getRequiredISOCurrencyId()) + "\"" + "/>"; return (ret); }