public final class TranslatorMode extends Object implements FactoryProperties
| Modifier and Type | Class and Description |
|---|---|
static class |
TranslatorMode.Builder
Provides a translator mode builder.
|
static class |
TranslatorMode.DotsPerCell
Provides a definition of the number of dots in a braille cell.
|
FactoryProperties.ComparatorBuilder| Modifier and Type | Method and Description |
|---|---|
Optional<Double> |
getContractionGrade()
Gets the contraction grade, if set.
|
String |
getDescription()
Gets the description for this Factory
|
String |
getDisplayName()
Gets the display name for this Factory
|
Optional<TranslatorMode.DotsPerCell> |
getDotsPerCell()
Gets the number of dots per cell, if set.
|
String |
getIdentifier()
Gets the identifier for this Factory
|
Optional<TranslatorType> |
getType()
Gets the mode type, if set.
|
static TranslatorMode |
parse(String str)
Parses the string as a translator mode.
|
String |
toString() |
static TranslatorMode |
withGrade(double grade)
Creates a new mode with the specified translation grade
|
static TranslatorMode |
withType(TranslatorType type)
Creates a new mode with the specified type.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitnewComparatorBuilderpublic static TranslatorMode parse(String str)
str - the input stringIllegalArgumentException - if parsing failspublic static TranslatorMode withType(TranslatorType type)
type - the typepublic static TranslatorMode withGrade(double grade)
grade - the translation gradepublic Optional<Double> getContractionGrade()
public Optional<TranslatorType> getType()
public Optional<TranslatorMode.DotsPerCell> getDotsPerCell()
public String getIdentifier()
FactoryPropertiesgetIdentifier in interface FactoryPropertiespublic String getDisplayName()
FactoryPropertiesgetDisplayName in interface FactoryPropertiespublic String getDescription()
FactoryPropertiesgetDescription in interface FactoryProperties