Class LanguageAnalyzerDescriptor
- java.lang.Object
-
- com.atlassian.confluence.plugins.index.api.LanguageAnalyzerDescriptor
-
- All Implemented Interfaces:
AnalyzerDescriptorProvider
@ExperimentalApi public final class LanguageAnalyzerDescriptor extends Object implements AnalyzerDescriptorProvider
An analyzer, that can behave differently depending on a given language.- Since:
- 7.17
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
LanguageAnalyzerDescriptor.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LanguageAnalyzerDescriptor.Builder
builder()
Create a builder for language dependent analyzer without default analyzer.static LanguageAnalyzerDescriptor.Builder
builder(AnalyzerDescriptor analyzer)
Create a builder for language dependent analyzer with the given default analyzer.boolean
equals(Object o)
Optional<MappingAnalyzerDescriptor>
getAnalyzer(LanguageDescriptor language)
int
hashCode()
-
-
-
Method Detail
-
getAnalyzer
public Optional<MappingAnalyzerDescriptor> getAnalyzer(LanguageDescriptor language)
- Specified by:
getAnalyzer
in interfaceAnalyzerDescriptorProvider
-
builder
public static LanguageAnalyzerDescriptor.Builder builder(AnalyzerDescriptor analyzer)
Create a builder for language dependent analyzer with the given default analyzer.
-
builder
public static LanguageAnalyzerDescriptor.Builder builder()
Create a builder for language dependent analyzer without default analyzer.
-
-