mirror of
https://github.com/ysoftdevs/odc-analyzer.git
synced 2026-01-18 09:38:14 +01:00
Added support for changelog
This commit is contained in:
@@ -5,4 +5,10 @@ class SetDiff[T](val oldSet: Set[T], val newSet: Set[T]) {
|
||||
lazy val removed = oldSet -- newSet
|
||||
lazy val isEmpty = newSet == oldSet
|
||||
def nonEmpty = !isEmpty
|
||||
|
||||
def map[U](f: T => U): SetDiff[U] = new SetDiff[U](
|
||||
oldSet = oldSet.map(f),
|
||||
newSet = newSet.map(f)
|
||||
)
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user