-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1121 from rahulsom/renovate/org.jlleitschuh.gradl…
…e.ktlint-12.x chore(deps): update plugin org.jlleitschuh.gradle.ktlint to v12
- Loading branch information
Showing
51 changed files
with
534 additions
and
406 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 4 additions & 1 deletion
5
grooves-core/src/main/kotlin/com/github/rahulsom/grooves/EventType.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
package com.github.rahulsom.grooves | ||
|
||
enum class EventType { | ||
Normal, Revert, Deprecates, DeprecatedBy | ||
Normal, | ||
Revert, | ||
Deprecates, | ||
DeprecatedBy, | ||
} |
19 changes: 12 additions & 7 deletions
19
grooves-core/src/main/kotlin/com/github/rahulsom/grooves/GroovesQuery.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,17 @@ | ||
package com.github.rahulsom.grooves | ||
|
||
interface GroovesQuery<Aggregate, VersionOrTimestamp, Snapshot, Event, EventId> { | ||
fun computeSnapshot(aggregate: Aggregate, at: VersionOrTimestamp?, redirect: Boolean): | ||
GroovesResult<Snapshot, Aggregate, VersionOrTimestamp> | ||
fun computeSnapshot( | ||
aggregate: Aggregate, | ||
at: VersionOrTimestamp?, | ||
redirect: Boolean, | ||
): GroovesResult<Snapshot, Aggregate, VersionOrTimestamp> | ||
|
||
fun computeSnapshot(aggregate: Aggregate, at: VersionOrTimestamp?) = | ||
( | ||
computeSnapshot(aggregate, at, true) | ||
as GroovesResult.Success<Snapshot, Aggregate, VersionOrTimestamp> | ||
).snapshot | ||
fun computeSnapshot( | ||
aggregate: Aggregate, | ||
at: VersionOrTimestamp?, | ||
) = ( | ||
computeSnapshot(aggregate, at, true) | ||
as GroovesResult.Success<Snapshot, Aggregate, VersionOrTimestamp> | ||
).snapshot | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.