public void putString(final String key, final String value) { this.put(key, Either3.<String, Number, Boolean>forFirst(value)); }
public void putString(final String key, final String value) { this.put(key, Either3.<String, Number, Boolean>forFirst(value)); }
if (EitherUtil.matches(jsonoptionsValoe.getValue(), new JsonDecision[] { JsonDecision.STRING })) { java.lang.String jsonoptionsValoXe = jsonoptionsValoe.getValue().getAsString();; jsonoptionsValoX= Either3.forFirst(jsonoptionsValoXe); } else if (EitherUtil.matches(jsonoptionsValoe.getValue(), new JsonDecision[] { JsonDecision.NUMBER })) { java.lang.Number jsonoptionsValoXe = (Number)jsonoptionsValoe.getValue().getAsDouble();;
if (EitherUtil.matches(jsonoptionsValoe.getValue(), new JsonDecision[] { JsonDecision.STRING })) { java.lang.String jsonoptionsValoXe = jsonoptionsValoe.getValue().getAsString();; jsonoptionsValoX= Either3.forFirst(jsonoptionsValoXe); } else if (EitherUtil.matches(jsonoptionsValoe.getValue(), new JsonDecision[] { JsonDecision.NUMBER })) { java.lang.Number jsonoptionsValoXe = (Number)jsonoptionsValoe.getValue().getAsDouble();;
if (EitherUtil.matches(jsonoptionsValoe.getValue(), new JsonDecision[] { JsonDecision.STRING })) { java.lang.String jsonoptionsValoXe = jsonoptionsValoe.getValue().getAsString();; jsonoptionsValoX= Either3.forFirst(jsonoptionsValoXe); } else if (EitherUtil.matches(jsonoptionsValoe.getValue(), new JsonDecision[] { JsonDecision.NUMBER })) { java.lang.Number jsonoptionsValoXe = (Number)jsonoptionsValoe.getValue().getAsDouble();;
public DocumentFormattingParamsDto(org.eclipse.lsp4j.DocumentFormattingParams o) { if (o.getOptions() == null) { setOptions((org.eclipse.lsp4j.FormattingOptions)null); } else { org.eclipse.lsp4j.FormattingOptions optionsVal= new org.eclipse.lsp4j.FormattingOptions(); for (Entry<String, org.eclipse.lsp4j.jsonrpc.messages.Either3<java.lang.String, java.lang.Number, java.lang.Boolean>> optionsValX : o.getOptions().entrySet()) { org.eclipse.lsp4j.jsonrpc.messages.Either3<java.lang.String, java.lang.Number, java.lang.Boolean> optionsValY; if (optionsValX.getValue().isFirst()) { java.lang.String optionsValYe = (java.lang.String)makeDto(optionsValX.getValue().getFirst());; optionsValY= Either3.forFirst(optionsValYe); } else if (optionsValX.getValue().isSecond()) { java.lang.Number optionsValYe = (java.lang.Number)makeDto(optionsValX.getValue().getSecond());; optionsValY= Either3.forSecond(optionsValYe); } else { java.lang.Boolean optionsValYe = (java.lang.Boolean)makeDto(optionsValX.getValue().getThird());; optionsValY= Either3.forThird(optionsValYe); } optionsVal.put(optionsValX.getKey(), optionsValY); } setOptions((org.eclipse.lsp4j.FormattingOptions)optionsVal); } if (o.getTextDocument() == null) { setTextDocument((org.eclipse.lsp4j.TextDocumentIdentifier)null); } else { org.eclipse.lsp4j.TextDocumentIdentifier textDocumentVal = new TextDocumentIdentifierDto(o.getTextDocument()); setTextDocument((org.eclipse.lsp4j.TextDocumentIdentifier)textDocumentVal); } }
if (optionsValX.getValue().isFirst()) { java.lang.String optionsValYe = (java.lang.String)makeDto(optionsValX.getValue().getFirst());; optionsValY= Either3.forFirst(optionsValYe); } else if (optionsValX.getValue().isSecond()) { java.lang.Number optionsValYe = (java.lang.Number)makeDto(optionsValX.getValue().getSecond());;
if (optionsValX.getValue().isFirst()) { java.lang.String optionsValYe = (java.lang.String)makeDto(optionsValX.getValue().getFirst());; optionsValY= Either3.forFirst(optionsValYe); } else if (optionsValX.getValue().isSecond()) { java.lang.Number optionsValYe = (java.lang.Number)makeDto(optionsValX.getValue().getSecond());;