Skip to content

Commit

Permalink
Put final before case class keywords
Browse files Browse the repository at this point in the history
  • Loading branch information
drmarjanovic committed Sep 28, 2024
1 parent 9373ff8 commit 8325b13
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions modules/redis/src/main/scala/zio/redis/options/Strings.scala
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,20 @@ trait Strings {
sealed trait Lcs

object Lcs {
case class PlainLcs(lcs: String) extends Lcs
case class Length(length: Long) extends Lcs
case class Matches(matches: List[Match], length: Long) extends Lcs
final case class PlainLcs(lcs: String) extends Lcs
final case class Length(length: Long) extends Lcs
final case class Matches(matches: List[Match], length: Long) extends Lcs
}

sealed trait LcsQueryType

object LcsQueryType {
case object Len extends LcsQueryType
case class Idx(minMatchLength: Int = 1, withMatchLength: Boolean = false) extends LcsQueryType
case object Len extends LcsQueryType
final case class Idx(minMatchLength: Int = 1, withMatchLength: Boolean = false) extends LcsQueryType
}

case class MatchIdx(start: Long, end: Long)
case class Match(matchIdxA: MatchIdx, matchIdxB: MatchIdx, matchLength: Option[Long] = None)
final case class MatchIdx(start: Long, end: Long)
final case class Match(matchIdxA: MatchIdx, matchIdxB: MatchIdx, matchLength: Option[Long] = None)

sealed trait BitFieldCommand

Expand Down Expand Up @@ -106,8 +106,8 @@ trait Strings {
sealed trait GetExpire

object GetExpire {
final case class Milliseconds(milliseconds: Long) extends GetExpire
case object Persist extends GetExpire
final case class Milliseconds(milliseconds: Long) extends GetExpire
final case class Seconds(seconds: Long) extends GetExpire
final case class UnixTimeMilliseconds(milliseconds: Long) extends GetExpire
final case class UnixTimeSeconds(seconds: Long) extends GetExpire
Expand Down

0 comments on commit 8325b13

Please sign in to comment.