All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.io.islandtime.parser.DateTimeParseResult.kt Maven / Gradle / Ivy

The newest version!
package io.islandtime.parser

import io.islandtime.base.DateTimeField

/**
 * The result of a parsing operation.
 */
data class DateTimeParseResult(
    val fields: MutableMap = hashMapOf(),
    var timeZoneId: String? = null
) {
    fun isEmpty() = fields.isEmpty() && timeZoneId == null
    fun isNotEmpty() = !isEmpty()

    internal fun deepCopy() = DateTimeParseResult(timeZoneId = timeZoneId).apply {
        fields.putAll([email protected])
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy