当前位置: 首页>>代码示例>>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;未经允许,请勿转载。