commonMain.io.islandtime.parser.DateTimeParseResult.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of core-metadata Show documentation
Show all versions of core-metadata Show documentation
A multiplatform library for working with dates and times
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