Example usage for java.util Objects.ToStringHelper toString

List of usage examples for java.util Objects.ToStringHelper toString

Introduction

In this page you can find the example usage for java.util Objects.ToStringHelper toString.

Prototype

public String toString() 

Source Link

Document

Returns a string representation of the object.

Usage

From source file:org.onebusaway.nyc.vehicle_tracking.impl.particlefilter.SensorModelResult.java

@Override
public String toString() {
    final Objects.ToStringHelper toStringHelper = Objects.toStringHelper("SensorModelResult");
    toStringHelper.add(name, getProbability());
    if (results != null) {
        for (final SensorModelResult res : results) {
            toStringHelper.addValue("\n\t" + res.toString());
        }/* www . j ava  2s  . c o m*/
    }
    return toStringHelper.toString();
}