List of usage examples for org.apache.commons.lang3.builder ToStringStyle SIMPLE_STYLE
ToStringStyle SIMPLE_STYLE
To view the source code for org.apache.commons.lang3.builder ToStringStyle SIMPLE_STYLE.
Click Source Link
From source file:com.ibasco.agql.protocols.valve.steam.webapi.pojos.StoreAppDetails.java
@Override public String toString() { return new ToStringBuilder(this, ToStringStyle.SIMPLE_STYLE).append("type", getType()) .append("name", getName()).append("appid", getAppId()).append("requiredAge", getRequiredAge()) .append("isFree", isFree()).append("controllerSupport", getControllerSupport()).toString(); }
From source file:de.micromata.tpsb.doc.parser.FileInfo.java
@Override public String toString() { ToStringBuilder tb = new ToStringBuilder(this, ToStringStyle.SIMPLE_STYLE); tb.append(className).append(getMethodInfos()); return tb.toString(); }
From source file:com.mawujun.util.ArrayUtils.java
/** * <p>Outputs an array as a String handling {@code null}s.</p> * * <p>Multi-dimensional arrays are handled correctly, including * multi-dimensional primitive arrays.</p> * * <p>The format is that of Java source code, for example <code>{a,b}</code>.</p> * * @param array the array to get a toString for, may be {@code null} * @param stringIfNull the String to return if the array is {@code null} * @return a String representation of the array *//* w w w. j a v a2 s . com*/ public static String toString(Object array, String stringIfNull) { if (array == null) { return stringIfNull; } return new ToStringBuilder(array, ToStringStyle.SIMPLE_STYLE).append(array).toString(); }
From source file:com.norconex.collector.http.delay.impl.DefaultDelayResolver.java
@Override public String toString() { return new ToStringBuilder(this, ToStringStyle.SIMPLE_STYLE).append("defaultDelay", defaultDelay) .append("schedules", schedules).append("ignoreRobotsCrawlDelay", ignoreRobotsCrawlDelay) .append("scope", scope).toString(); }
From source file:com.omertron.yamjtrakttv.tools.TraktTools.java
/** * Remove a show from the account completely * * @param shows/*from w w w. j a v a 2 s .c o m*/ */ public static void removeShows(List<TvShow> shows) { ShowService service = MANAGER.showService(); for (TvShow show : shows) { LOG.debug("Removing '" + show.title + "' (IMDB: " + show.imdbId + ", TVDB: " + show.tvdbId + ")"); try { if (StringUtils.isNotBlank(show.tvdbId)) { int tvdbId = NumberUtils.toInt(show.tvdbId); ShowService.EpisodeUnseenBuilder unseen = service.episodeUnseen(tvdbId); ShowService.EpisodeUnwatchlistBuilder unwatch = service.episodeUnwatchlist(tvdbId); for (TvShowSeason season : show.seasons) { for (Integer epnum : season.episodes.numbers) { unseen = unseen.episode(season.season, epnum); unwatch = unwatch.episode(season.season, epnum); } } unseen.fire(); unwatch.fire(); LOG.debug("Done '" + show.title + "'"); } else { LOG.warn("Failed to delete show! " + ToStringBuilder.reflectionToString(show, ToStringStyle.SIMPLE_STYLE)); } } catch (TraktException ex) { LOG.info("Exception: " + ex.getMessage(), ex); } } LOG.debug("Done"); }
From source file:com.tao_harmony.fx2extend.journal.Journal.java
/** * toString(). ?.//from www . ja v a 2 s . c o m * * @return */ @Override public String toString() { return ReflectionToStringBuilder.toString(this, ToStringStyle.SIMPLE_STYLE); }
From source file:org.faster.util.NestParam.java
@Override public String toString() { ToStringBuilder tsb = new ToStringBuilder(this, ToStringStyle.SIMPLE_STYLE); tsb.append("name", name); if (existChildParams()) { tsb.append("childParams", childParams); }/*from ww w. j a v a 2 s .com*/ return tsb.toString(); }
From source file:org.jnosql.artemis.key.DefaultKeyValueEntityPostPersist.java
@Override public String toString() { return new ToStringBuilder(this, ToStringStyle.SIMPLE_STYLE).append("entity", entity).toString(); }
From source file:org.jnosql.artemis.reflection.DefaultClassRepresentations.java
@Override public String toString() { return new ToStringBuilder(this, ToStringStyle.SIMPLE_STYLE).append("REPRESENTATIONS", representations) .toString();/*from w ww .j a v a 2 s. c o m*/ }
From source file:org.jnosql.artemis.reflection.DefaultFieldRepresentation.java
@Override public String toString() { return new ToStringBuilder(this, ToStringStyle.SIMPLE_STYLE).append("type", type).append("field", field) .append("name", name).append("key", key).toString(); }