From 85bdae0fa829fc747d2207de7627ade03db543c5 Mon Sep 17 00:00:00 2001 From: Megan Wachs Date: Wed, 2 Aug 2017 11:40:50 -0700 Subject: [PATCH] diplomacy: Pretty Print for TransferSizes --- src/main/scala/diplomacy/Parameters.scala | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/scala/diplomacy/Parameters.scala b/src/main/scala/diplomacy/Parameters.scala index 1a8bbaa3..a16f70aa 100644 --- a/src/main/scala/diplomacy/Parameters.scala +++ b/src/main/scala/diplomacy/Parameters.scala @@ -92,6 +92,9 @@ case class TransferSizes(min: Int, max: Int) def intersect(x: TransferSizes) = if (x.max < min || max < x.min) TransferSizes.none else TransferSizes(scala.math.max(min, x.min), scala.math.min(max, x.max)) + + override def toString() = "TransferSizes[%d, %d]".format(min, max) + } object TransferSizes {