diff options
Diffstat (limited to 'src/org/unitConverter/math/ObjectProduct.java')
-rw-r--r-- | src/org/unitConverter/math/ObjectProduct.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/org/unitConverter/math/ObjectProduct.java b/src/org/unitConverter/math/ObjectProduct.java index 0cf89ec..29d0f6e 100644 --- a/src/org/unitConverter/math/ObjectProduct.java +++ b/src/org/unitConverter/math/ObjectProduct.java @@ -238,6 +238,14 @@ public final class ObjectProduct<T> { return new ObjectProduct<>(map);
}
+ /**
+ * Converts this product to a string using the objects' {@link Object#toString()} method. If objects have a long
+ * toString representation, it is recommended to use {@link #toString(Function)} instead to shorten the returned
+ * string.
+ *
+ * <p>
+ * {@inheritDoc}
+ */
@Override
public String toString() {
return this.toString(Object::toString);
|