-
- All Implemented Interfaces:
-
org.jetbrains.kotlinx.jupyter.api.libraries.VariablesSubstitutionAware
public final class LibraryResource implements VariablesSubstitutionAware<LibraryResource>
-
-
Field Summary
Fields Modifier and Type Field Description private final List<ResourceFallbacksBundle>
bundles
private final ResourceType
type
private final String
name
-
Constructor Summary
Constructors Constructor Description LibraryResource(List<ResourceFallbacksBundle> bundles, ResourceType type, String name)
-
Method Summary
Modifier and Type Method Description LibraryResource
replaceVariables(Map<String, String> mapping)
Replace variables and return the result. final List<ResourceFallbacksBundle>
component1()
final ResourceType
component2()
final String
component3()
final LibraryResource
copy(List<ResourceFallbacksBundle> bundles, ResourceType type, String name)
final List<ResourceFallbacksBundle>
getBundles()
final ResourceType
getType()
final String
getName()
-
-
Constructor Detail
-
LibraryResource
LibraryResource(List<ResourceFallbacksBundle> bundles, ResourceType type, String name)
-
-
Method Detail
-
replaceVariables
LibraryResource replaceVariables(Map<String, String> mapping)
Replace variables and return the result.
- Parameters:
mapping
- maps variables names to their values
-
component1
final List<ResourceFallbacksBundle> component1()
-
component2
final ResourceType component2()
-
component3
final String component3()
-
copy
final LibraryResource copy(List<ResourceFallbacksBundle> bundles, ResourceType type, String name)
-
getBundles
final List<ResourceFallbacksBundle> getBundles()
-
getType
final ResourceType getType()
-
-
-
-