Class TranslationCreateResponse
-
- All Implemented Interfaces:
public final class TranslationCreateResponse
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interface
TranslationCreateResponse.Visitor
An 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 Boolean
isTranslation()
final Boolean
isVerbose()
final Translation
asTranslation()
final TranslationVerbose
asVerbose()
final Optional<JsonValue>
_json()
final <T extends Any> T
accept(TranslationCreateResponse.Visitor<T> visitor)
final TranslationCreateResponse
validate()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static TranslationCreateResponse
ofTranslation(Translation translation)
final static TranslationCreateResponse
ofVerbose(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)
-
-
-
-