當前位置: 首頁>>代碼示例>>Java>>正文


Java ToStringBuilder類代碼示例

本文整理匯總了Java中org.apache.commons.lang3.builder.ToStringBuilder的典型用法代碼示例。如果您正苦於以下問題:Java ToStringBuilder類的具體用法?Java ToStringBuilder怎麽用?Java ToStringBuilder使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


ToStringBuilder類屬於org.apache.commons.lang3.builder包,在下文中一共展示了ToStringBuilder類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: testFromJson

import org.apache.commons.lang3.builder.ToStringBuilder; //導入依賴的package包/類
@Test
public void testFromJson() {
  String json = "{\r\n" +
    "   \"kf_online_list\": [\r\n" +
    "       {\r\n" +
    "           \"kf_account\": \"[email protected]\", \r\n" +
    "           \"status\": 1, \r\n" +
    "           \"kf_id\": \"1001\", \r\n" +
    "           \"auto_accept\": 0, \r\n" +
    "           \"accepted_case\": 1\r\n" +
    "       },\r\n" +
    "       {\r\n" +
    "           \"kf_account\": \"[email protected]\", \r\n" +
    "           \"status\": 1, \r\n" +
    "           \"kf_id\": \"1002\", \r\n" +
    "           \"auto_accept\": 0, \r\n" +
    "           \"accepted_case\": 2\r\n" +
    "       }\r\n" +
    "   ]\r\n" +
    "}";

  WxMpKfOnlineList wxMpKfOnlineList = WxMpKfOnlineList.fromJson(json);
  Assert.assertNotNull(wxMpKfOnlineList);
  System.err.println(ToStringBuilder.reflectionToString(wxMpKfOnlineList));

}
 
開發者ID:11590692,項目名稱:Wechat-Group,代碼行數:27,代碼來源:WxMpKfOnlineListTest.java

示例2: toString

import org.apache.commons.lang3.builder.ToStringBuilder; //導入依賴的package包/類
@Override
public String toString() {
    return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).appendSuper(super.toString())
            .append("persoon", persoon)
            .append("ouder1", ouder1)
            .append("ouder2", ouder2)
            .append("nationaliteiten", nationaliteiten)
            .append("huwelijken", huwelijken)
            .append("overlijden", overlijden)
            .append("inschrijving", inschrijving)
            .append("adres", adres)
            .append("kinderen", kinderen)
            .append("verblijfstitel", verblijfstitel)
            .append("gezagsverhouding", gezagsverhouding)
            .append("reisdocumenten", reisdocumenten)
            .append("kiesrecht", kiesrecht)
            .toString();
}
 
開發者ID:MinBZK,項目名稱:OperatieBRP,代碼行數:19,代碼來源:Lo3Mutaties.java

示例3: toString

import org.apache.commons.lang3.builder.ToStringBuilder; //導入依賴的package包/類
/**
 * toString produces a human readable representation of the WsFederationCredential.
 *
 * @return a human readable representation of the WsFederationCredential
 */
@Override
public String toString() {

    return new ToStringBuilder(this, ToStringStyle.NO_CLASS_NAME_STYLE)
            .append("ID", this.id)
            .append("Issuer", this.issuer)
            .append("Audience", this.audience)
            .append("Authentication Method", this.authenticationMethod)
            .append("Issued On", this.issuedOn)
            .append("Valid After", this.notBefore)
            .append("Valid Before", this.notOnOrAfter)
            .append("Attributes", this.attributes)
            .build();

}
 
開發者ID:hsj-xiaokang,項目名稱:springboot-shiro-cas-mybatis,代碼行數:21,代碼來源:WsFederationCredential.java

示例4: toString

import org.apache.commons.lang3.builder.ToStringBuilder; //導入依賴的package包/類
@Override
public String toString() {
    return new ToStringBuilder(this)
            .append("wtrealm", wtrealm)
            .append("wreply", wreply)
            .append("wctx", wctx)
            .append("wfresh", wfresh)
            .append("whr", whr)
            .append("wresult", wresult)
            .append("relayState", relayState)
            .append("samlResponse", samlResponse)
            .append("state", state)
            .append("code", code)
            .append("wa", wa)
            .append("wauth", wauth)
            .append("wreq", wreq)
            .toString();
}
 
開發者ID:mrluo735,項目名稱:cas-5.1.0,代碼行數:19,代碼來源:WSFederationRequest.java

示例5: getCurrentTaskInfo

import org.apache.commons.lang3.builder.ToStringBuilder; //導入依賴的package包/類
/**
 * 獲取當前節點信息
 *
 * @param processInstance
 * @return
 */
private Task getCurrentTaskInfo(ProcessInstance processInstance) {
    Task currentTask = null;
    try {
        String activitiId = (String) PropertyUtils.getProperty(processInstance, "activityId");
        logger.debug("current activity id: {}", activitiId);

        currentTask = taskService.createTaskQuery().processInstanceId(processInstance.getId()).taskDefinitionKey(activitiId)
                .singleResult();
        logger.debug("current task for processInstance: {}", ToStringBuilder.reflectionToString(currentTask));

    } catch (Exception e) {
        logger.error("can not get property activityId from processInstance: {}", processInstance);
    }
    return currentTask;
}
 
開發者ID:batizhao,項目名稱:microservice,代碼行數:22,代碼來源:WorkflowTraceService.java

示例6: toString

import org.apache.commons.lang3.builder.ToStringBuilder; //導入依賴的package包/類
@Override
public String toString() {
    return new ToStringBuilder(this)
            .appendSuper(super.toString())
            .append("allowedAttributes", allowedAttributes)
            .toString();
}
 
開發者ID:yuweijun,項目名稱:cas-server-4.2.1,代碼行數:8,代碼來源:ReturnMappedAttributeReleasePolicy.java

示例7: toString

import org.apache.commons.lang3.builder.ToStringBuilder; //導入依賴的package包/類
@Override
public String toString() {
    return new ToStringBuilder(this)
            .appendSuper(super.toString())
            .append("startingDateTime", startingDateTime)
            .append("endingDateTime", endingDateTime)
            .toString();
}
 
開發者ID:yuweijun,項目名稱:cas-server-4.2.1,代碼行數:9,代碼來源:TimeBasedRegisteredServiceAccessStrategy.java

示例8: toString

import org.apache.commons.lang3.builder.ToStringBuilder; //導入依賴的package包/類
@Override
public String toString() {
    return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE)
            .append("compareSubject", getCompareSubject())
            .append("fieldName", this.fieldName)
            .append("leftVal", this.leftVal)
            .append("rightVal", this.rightVal)
            .append("leftObjectDetail", this.left)
            .append("rightObjectDetail", this.right)
            .toString();
}
 
開發者ID:goldmansachs,項目名稱:obevo,代碼行數:12,代碼來源:FieldCompareBreak.java

示例9: toString

import org.apache.commons.lang3.builder.ToStringBuilder; //導入依賴的package包/類
@Override
public String toString() {
    return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE)
            .appendSuper(super.toString())
            .append("crdtId", getCrdtId())
            .append("element", element)
            .toString();
}
 
開發者ID:netopyr,項目名稱:wurmloch-crdt,代碼行數:9,代碼來源:USet.java

示例10: toString

import org.apache.commons.lang3.builder.ToStringBuilder; //導入依賴的package包/類
@Override
public String toString() {
    return new ToStringBuilder(this)
            .append("multifactorAuthenticationProviders", this.multifactorAuthenticationProviders)
            .append("failureMode", this.failureMode)
            .append("principalAttributeNameTrigger", this.principalAttributeNameTrigger)
            .append("principalAttributeValueToMatch", this.principalAttributeValueToMatch)
            .append("bypassEnabled", this.bypassEnabled)
            .toString();
}
 
開發者ID:mrluo735,項目名稱:cas-5.1.0,代碼行數:11,代碼來源:DefaultRegisteredServiceMultifactorPolicy.java

示例11: toString

import org.apache.commons.lang3.builder.ToStringBuilder; //導入依賴的package包/類
/**
 * {@inheritDoc}
 */
@Override
public String toString() {
	return new ToStringBuilder(this)
			.append("username", username)
			.toString();
}
 
開發者ID:cmateosl,項目名稱:role-api,代碼行數:10,代碼來源:User.java

示例12: toString

import org.apache.commons.lang3.builder.ToStringBuilder; //導入依賴的package包/類
@Override
public String toString() {
    return new ToStringBuilder(this)
            .append("failureThreshold", this.failureThreshold)
            .append("failureRangeInSeconds", this.failureRangeInSeconds)
            .append("usernameParameter", this.usernameParameter)
            .append("thresholdRate", this.thresholdRate)
            .toString();
}
 
開發者ID:yuweijun,項目名稱:cas-server-4.2.1,代碼行數:10,代碼來源:AbstractThrottledSubmissionHandlerInterceptorAdapter.java

示例13: toString

import org.apache.commons.lang3.builder.ToStringBuilder; //導入依賴的package包/類
@Override
public String toString() {
    return new ToStringBuilder(this)
            .append("ticketId", ticketId)
            .append("service", service)
            .append("status", status)
            .toString();
}
 
開發者ID:hsj-xiaokang,項目名稱:springboot-shiro-cas-mybatis,代碼行數:9,代碼來源:DefaultLogoutRequest.java

示例14: toString

import org.apache.commons.lang3.builder.ToStringBuilder; //導入依賴的package包/類
@Override
public String toString() {
    return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE)
            .append("id", id)
            .append("sequence", sequence)
            .append("time", time)
            .append("origin", origin)
            .append("information", information)
            .toString();
}
 
開發者ID:psd2-in-a-box,項目名稱:mid-tier,代碼行數:11,代碼來源:Event.java

示例15: toString

import org.apache.commons.lang3.builder.ToStringBuilder; //導入依賴的package包/類
@Override
public String toString() {
    return new ToStringBuilder(this)
            .append("value", value)
            .append("clock", clock)
            .toString();
}
 
開發者ID:netopyr,項目名稱:wurmloch-crdt,代碼行數:8,代碼來源:MVRegister.java


注:本文中的org.apache.commons.lang3.builder.ToStringBuilder類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。