We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ffb6fd8 commit f9b101fCopy full SHA for f9b101f
1 file changed
core/src/main/scala/latis/util/Bounds.scala
@@ -6,7 +6,7 @@ package latis.util
6
* It enforces that the upper bound is strictly greater than
7
* the lower bound.
8
*/
9
-final class Bounds[T] private (val lower: T, val upper: T)(ord: Ordering[T]) {
+final case class Bounds[T] private (val lower: T, val upper: T)(ord: Ordering[T]) {
10
11
/**
12
* Tests whether the given value falls within this [[Bounds]].
@@ -37,7 +37,4 @@ object Bounds {
37
case _ => None
38
}
39
40
- /** Extracts the lower and upper bounds. */
41
- def unapplySeq[T](bounds: Bounds[T]): Option[Seq[T]] =
42
- Some(Seq(bounds.lower, bounds.upper))
43
0 commit comments