Tidslinje

class Tidslinje<T>(initSegmenter: NavigableSet<Segment<T>> = TreeSet()) : Iterable<Segment<T>>

Constructors

Link copied to clipboard
constructor(initSegmenter: List<Segment<T>>)
constructor(periode: Periode, verdi: T)
constructor(initSegmenter: NavigableSet<Segment<T>> = TreeSet())

Functions

Link copied to clipboard
fun disjoint(periode: Periode): Tidslinje<T>
fun <E, V> disjoint(other: Tidslinje<E>, combinator: (Periode, Segment<T>) -> Segment<V>): Tidslinje<V>
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
Link copied to clipboard
fun filter(predikat: (Segment<T>) -> Boolean): Tidslinje<T>
Link copied to clipboard
fun <R> flatMap(mapper: (Segment<T>) -> Tidslinje<R>): Tidslinje<R>
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open operator override fun iterator(): Iterator<Segment<T>>
Link copied to clipboard
fun <E, V> kombiner(other: Tidslinje<E>, joinStyle: JoinStyle<T, E, V>): Tidslinje<V>

Merge av to tidslinjer, prioriterer verdier fra den som merges over den som det kalles på oppretter en tredje slik at orginale verdier bevares

Link copied to clipboard

Komprimerer tidslinjen

Link copied to clipboard
fun kryss(other: Tidslinje<Any?>): Tidslinje<T>
fun kryss(periode: Periode): Tidslinje<T>
Link copied to clipboard
fun <R> mapValue(mapper: (T) -> R): Tidslinje<R>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun segment(dato: LocalDate): Segment<T>?

Henter segmentet som inneholder datoen

Link copied to clipboard
Link copied to clipboard
fun splittOppEtter(startDato: LocalDate, period: Period): Tidslinje<T>

fun splittOppEtter(startDato: LocalDate, sluttDato: LocalDate, period: Period): Tidslinje<T>

Knekker opp segmenterene i henhold til period fom startDato tom sluttDato

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun splittOppOgGrupper(startDato: LocalDate, sluttDato: LocalDate, period: Period): Tidslinje<Tidslinje<T>>
Link copied to clipboard

fun <R> splittOppOgMapOmEtter(startDato: LocalDate, sluttDato: LocalDate, period: Period, mapper: (NavigableSet<Segment<T>>) -> NavigableSet<Segment<R>>): Tidslinje<R>

Knekker opp segmenterene i henhold til period fom startDato tom sluttDato

Link copied to clipboard
open override fun toString(): String