List of usage examples for org.apache.commons.lang.builder ToStringStyle SHORT_PREFIX_STYLE
ToStringStyle SHORT_PREFIX_STYLE
To view the source code for org.apache.commons.lang.builder ToStringStyle SHORT_PREFIX_STYLE.
Click Source Link
From source file:com.echosource.ada.core.AdaFile.java
/** * @see java.lang.Object#toString()// ww w . ja v a 2s.c om */ @Override public String toString() { ToStringBuilder builder = new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE); builder.append("filename", filename); builder.append("longName", longName); builder.append("packageKey", packageKey); builder.append("parent", parent); builder.append("unitTest", unitTest); return builder.toString(); }
From source file:com.datatorrent.stram.plan.physical.PTContainer.java
public String toIdStateString() { return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE) .append("id", "" + seq + "(" + this.containerId + ")").append("state", this.getState()).toString(); }
From source file:com.adaptris.jdbc.connection.FailoverConfig.java
@Override public String toString() { return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("driver", getDatabaseDriver()) .append("connectionUrls", getConnectionUrls()).append("testStatement", getTestStatement()) .append("debugMode", getDebugMode()).append("autoCommit", getAutoCommit()) .append("alwaysValidate", getAlwaysValidateConnection()).toString(); }
From source file:com.datatorrent.stram.plan.physical.PTContainer.java
/** * * @return String/*from ww w . j a va 2 s. co m*/ */ @Override public String toString() { return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE) .append("id", "" + seq + "(" + this.containerId + ")").append("state", this.getState()) .append("operators", this.operators).toString(); }
From source file:io.horizondb.model.core.records.BinaryTimeSeriesRecord.java
/** * {@inheritDoc}/*w w w. j a va 2 s. c om*/ */ @Override public String toString() { return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("buffer", this.buffer).toString(); }
From source file:com.likethecolor.alchemy.api.entity.SentimentAlchemyEntityTest.java
@Test public void testToString_Formatted() { final boolean isMixed = true; final Double score = 0.3343D; final SentimentAlchemyEntity.TYPE type = SentimentAlchemyEntity.TYPE.POSITIVE; final ToStringStyle style = ToStringStyle.SHORT_PREFIX_STYLE; final SentimentAlchemyEntity entity = new SentimentAlchemyEntity(isMixed, score, type.toString()); final String expectedString = new ToStringBuilder(entity, style).append("is mixed", isMixed) .append("score", score).append("type", type).toString(); final String actualString = entity.toString(style); assertEquals(expectedString, actualString); }
From source file:io.horizondb.model.schema.DefaultRecordSetDefinition.java
/** * {@inheritDoc}//from www.j av a 2 s.c o m */ @Override public String toString() { return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("timeUnit", this.timeUnit) .append("timeZone", this.timeZone).append("recordTypes", this.recordTypes).toString(); }
From source file:com.datatorrent.stram.api.OperatorDeployInfo.java
/** * * @return String/*from w w w . ja va2s . com*/ */ @Override public String toString() { return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("id", this.id) .append("name", this.name).append("type", this.type).append("checkpoint", this.checkpoint) .append("inputs", this.inputs).append("outputs", this.outputs).toString(); }
From source file:com.netflix.nicobar.core.archive.JarScriptArchive.java
@Override public String toString() { return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("moduleSpec", moduleSpec) .append("entryNames", entryNames).append("rootUrl", rootUrl).append("createTime", createTime) .toString();/*ww w. j a v a 2 s . co m*/ }
From source file:io.horizondb.model.protocol.MsgHeader.java
/** * {@inheritDoc}/*from w w w . ja va 2 s . c o m*/ */ @Override public String toString() { return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("magicNumber", this.magicNumber) .append("opCode", this.opCode).append("status", this.status) .append("payloadLength", this.payloadLength).append("opaque", this.opaque).toString(); }