
com.jetbrains.plugin.structure.classes.resolvers.ResourceBundleNameSet.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of structure-classes Show documentation
Show all versions of structure-classes Show documentation
Base library for resolving class files and resources. Used by other JetBrains Plugins Structure Classes libraries.
/*
* 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