Search in sources :

Example 66 with ToStringBuilder

use of org.apache.commons.lang.builder.ToStringBuilder in project openhab1-addons by openhab.

the class VariableConfig method toString.

/**
     * {@inheritDoc}
     */
@Override
public String toString() {
    ToStringBuilder tsb = new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE);
    tsb.append("name", name);
    if (converter != null) {
        tsb.append("converter", converter);
    }
    if (action != null) {
        tsb.append("action", action);
    }
    if (forceUpdate) {
        tsb.append("forceUpdate", forceUpdate);
    }
    if (delay > 0.0) {
        tsb.append("delay", delay);
    }
    return tsb.toString();
}
Also used : ToStringBuilder(org.apache.commons.lang.builder.ToStringBuilder)

Example 67 with ToStringBuilder

use of org.apache.commons.lang.builder.ToStringBuilder in project openhab1-addons by openhab.

the class HmRemoteControlOptions method toString.

@Override
public String toString() {
    ToStringBuilder tsb = new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE);
    tsb.append("text", text).append("beep", beep).append("backlight", backlight).append("unit", unit).append("symbols", symbols);
    return tsb.toString();
}
Also used : ToStringBuilder(org.apache.commons.lang.builder.ToStringBuilder)

Example 68 with ToStringBuilder

use of org.apache.commons.lang.builder.ToStringBuilder in project openhab1-addons by openhab.

the class AstroBindingConfig method toString.

@Override
public String toString() {
    ToStringBuilder tsb = new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE);
    tsb.append("planet", planetName.toString().toLowerCase()).append("type", type).append("property", property);
    if (offset != 0) {
        tsb.append("offset", offset);
    }
    return tsb.toString();
}
Also used : ToStringBuilder(org.apache.commons.lang.builder.ToStringBuilder)

Example 69 with ToStringBuilder

use of org.apache.commons.lang.builder.ToStringBuilder in project opennms by OpenNMS.

the class AsyncClientConversation method toString.

@Override
public String toString() {
    ToStringBuilder builder = new ToStringBuilder(this);
    builder.append("hasBanner", m_hasBanner);
    builder.append("isComplete", m_isComplete);
    builder.append("conversation", m_conversation.toArray());
    return builder.toString();
}
Also used : ToStringBuilder(org.apache.commons.lang.builder.ToStringBuilder)

Example 70 with ToStringBuilder

use of org.apache.commons.lang.builder.ToStringBuilder in project opennms by OpenNMS.

the class AbstractReportInstance method toString.

@Override
public String toString() {
    ToStringBuilder tsb = new ToStringBuilder(this);
    tsb.append("name", getName());
    tsb.append("description", getDescription());
    tsb.append("retainInterval", getRetainInterval());
    return tsb.toString();
}
Also used : ToStringBuilder(org.apache.commons.lang.builder.ToStringBuilder)

Aggregations

ToStringBuilder (org.apache.commons.lang.builder.ToStringBuilder)73 DataMap (com.linkedin.data.DataMap)1 ProtocolVersion (com.linkedin.restli.common.ProtocolVersion)1 PropertyChangeEvent (java.beans.PropertyChangeEvent)1 PropertyChangeListener (java.beans.PropertyChangeListener)1 InetAddress (java.net.InetAddress)1 SimpleDateFormat (java.text.SimpleDateFormat)1 Arrays (java.util.Arrays)1 Collection (java.util.Collection)1 Collections (java.util.Collections)1 Date (java.util.Date)1 HashMap (java.util.HashMap)1 LinkedList (java.util.LinkedList)1 List (java.util.List)1 Map (java.util.Map)1 Properties (java.util.Properties)1 Set (java.util.Set)1 TimeZone (java.util.TimeZone)1 Collectors (java.util.stream.Collectors)1 Level (org.apache.logging.log4j.Level)1