org.eclipse.lsp4j.jsonrpc.messages.Either.<init>()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(1.7k)|赞(0)|评价(0)|浏览(126)

本文整理了Java中org.eclipse.lsp4j.jsonrpc.messages.Either.<init>()方法的一些代码示例,展示了Either.<init>()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Either.<init>()方法的具体详情如下:
包路径:org.eclipse.lsp4j.jsonrpc.messages.Either
类名称:Either
方法名:<init>

Either.<init>介绍

暂无

代码示例

代码示例来源:origin: eclipse/lsp4j

public static <L, R> Either<L, R> forLeft(@NonNull L left) {
  return new Either<L, R>(left, null);
}

代码示例来源:origin: org.eclipse.lsp4j/org.eclipse.lsp4j.jsonrpc

public static <T1, T2, T3> Either3<T1, T2, T3> forSecond(@NonNull T2 second) {
  return new Either3<T1, T2, T3>(null, new Either<T2, T3>(second, null));
}

代码示例来源:origin: org.eclipse.lsp4j/org.eclipse.lsp4j.jsonrpc

public static <T1, T2, T3> Either3<T1, T2, T3> forThird(@NonNull T3 third) {
  return new Either3<T1, T2, T3>(null, new Either<T2, T3>(null, third));
}

代码示例来源:origin: eclipse/lsp4j

public static <T1, T2, T3> Either3<T1, T2, T3> forThird(@NonNull T3 third) {
  return new Either3<T1, T2, T3>(null, new Either<T2, T3>(null, third));
}

代码示例来源:origin: eclipse/lsp4j

public static <L, R> Either<L, R> forRight(@NonNull R right) {
  return new Either<L, R>(null, right);
}

代码示例来源:origin: org.eclipse.lsp4j/org.eclipse.lsp4j.jsonrpc

public static <L, R> Either<L, R> forLeft(@NonNull L left) {
  return new Either<L, R>(left, null);
}

代码示例来源:origin: org.eclipse.lsp4j/org.eclipse.lsp4j.jsonrpc

public static <L, R> Either<L, R> forRight(@NonNull R right) {
  return new Either<L, R>(null, right);
}

代码示例来源:origin: eclipse/lsp4j

public static <T1, T2, T3> Either3<T1, T2, T3> forSecond(@NonNull T2 second) {
  return new Either3<T1, T2, T3>(null, new Either<T2, T3>(second, null));
}

相关文章