-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
La inn støtte for 'har ikke opplysning' i regler
- Loading branch information
Showing
2 changed files
with
16 additions
and
1 deletion.
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
9 changes: 9 additions & 0 deletions
9
...eidssoeker-regler/src/main/kotlin/no/nav/paw/arbeidssokerregisteret/application/Regler.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,6 +1,15 @@ | ||
package no.nav.paw.arbeidssokerregisteret.application | ||
|
||
import no.nav.paw.arbeidssokerregisteret.application.opplysninger.Opplysning | ||
|
||
interface Regler { | ||
val regler: List<Regel> | ||
val standardRegel: Regel | ||
operator fun Opplysning.not(): Opplysning = HarIkke(this).value | ||
} | ||
|
||
interface Not<A> { | ||
val value: A | ||
} | ||
|
||
data class HarIkke(override val value: Opplysning) : Not<Opplysning> |