Class TranslationCreateResponse
-
- All Implemented Interfaces:
public final class TranslationCreateResponse
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceTranslationCreateResponse.VisitorAn interface that defines how to map each variant of TranslationCreateResponse to a value of type T.
-
Method Summary
Modifier and Type Method Description final Optional<Translation>translation()final Optional<TranslationVerbose>verbose()final BooleanisTranslation()final BooleanisVerbose()final TranslationasTranslation()final TranslationVerboseasVerbose()final Optional<JsonValue>_json()final <T extends Any> Taccept(TranslationCreateResponse.Visitor<T> visitor)final TranslationCreateResponsevalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static TranslationCreateResponseofTranslation(Translation translation)final static TranslationCreateResponseofVerbose(TranslationVerbose verbose)-
-
Method Detail
-
translation
final Optional<Translation> translation()
-
verbose
final Optional<TranslationVerbose> verbose()
-
isTranslation
final Boolean isTranslation()
-
asTranslation
final Translation asTranslation()
-
asVerbose
final TranslationVerbose asVerbose()
-
accept
final <T extends Any> T accept(TranslationCreateResponse.Visitor<T> visitor)
-
validate
final TranslationCreateResponse validate()
-
ofTranslation
final static TranslationCreateResponse ofTranslation(Translation translation)
-
ofVerbose
final static TranslationCreateResponse ofVerbose(TranslationVerbose verbose)
-
-
-
-