List of usage examples for java.util Objects.ToStringHelper toString
public String toString()
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(); }