com.jetbrains.plugin.structure.classes.resolvers.ResourceBundleNameSet.kt Maven / Gradle / Ivy
/*
* Copyright 2000-2020 JetBrains s.r.o. and other contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
*/
package com.jetbrains.plugin.structure.classes.resolvers
/**
* Contains base names of resource bundles and their full names, for example
* ```
* messages.StandaloneBundle -> [messages.StandaloneBundle]
* messages.LocalizedBundle -> [messages.LocalizedBundle, messages.LocalizedBundle_en, messages.LocalizedBundle_fr]
* ```
*/
data class ResourceBundleNameSet(private val bundleNames: Map>) {
val baseBundleNames: Set get() = bundleNames.keys
val isEmpty: Boolean get() = bundleNames.isEmpty()
operator fun get(baseName: String): Set = bundleNames.getOrElse(baseName) { emptySet() }
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy