play.libs.Scala.classTag()方法的使用及代码示例

x33g5p2x  于2022-01-30 转载在 其他  
字(4.8k)|赞(0)|评价(0)|浏览(267)

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

Scala.classTag介绍

暂无

代码示例

代码示例来源:origin: com.typesafe.play/play-cache_2.11

@Override
@Deprecated
public <T> T get(String key) {
 scala.Option<T> opt = scalaApi.get(key, Scala.classTag());
 if (opt.isDefined()) {
  return opt.get();
 } else {
  return null;
 }
}

代码示例来源:origin: com.typesafe.play/play-cache_2.12

@Override
@Deprecated
public <T> T get(String key) {
 scala.Option<T> opt = scalaApi.get(key, Scala.classTag());
 if (opt.isDefined()) {
  return opt.get();
 } else {
  return null;
 }
}

代码示例来源:origin: com.typesafe.play/play-cache

@Override
@Deprecated
public <T> T get(String key) {
 scala.Option<T> opt = scalaApi.get(key, Scala.classTag());
 if (opt.isDefined()) {
  return opt.get();
 } else {
  return null;
 }
}

代码示例来源:origin: com.typesafe.play/play-cache_2.12

@Override
public <T> Optional<T> getOptional(String key) {
 return toJava(scalaApi.get(key, Scala.classTag()));
}

代码示例来源:origin: com.typesafe.play/play-cache

@Override
public <T> Optional<T> getOptional(String key) {
 return toJava(scalaApi.get(key, Scala.classTag()));
}

代码示例来源:origin: com.typesafe.play/play-cache_2.11

@Override
public <T> Optional<T> getOptional(String key) {
 return toJava(scalaApi.get(key, Scala.classTag()));
}

代码示例来源:origin: com.typesafe.play/play-cache_2.12

@Override
@Deprecated
public <T> CompletionStage<T> get(String key) {
  return toJava(asyncCacheApi.get(key, Scala.<T>classTag())).thenApply(Scala::orNull);
}

代码示例来源:origin: com.typesafe.play/play-cache

@Override
@Deprecated
public <T> CompletionStage<T> get(String key) {
  return toJava(asyncCacheApi.get(key, Scala.<T>classTag())).thenApply(Scala::orNull);
}

代码示例来源:origin: com.typesafe.play/play-cache_2.11

@Override
@Deprecated
public <T> CompletionStage<T> get(String key) {
  return toJava(asyncCacheApi.get(key, Scala.<T>classTag())).thenApply(Scala::orNull);
}

代码示例来源:origin: com.typesafe.play/play-cache_2.11

@Override
public <T> T getOrElseUpdate(String key, Callable<T> block) {
 return scalaApi.getOrElseUpdate(key, Duration.Inf(), Scala.asScala(block), Scala.classTag());
}

代码示例来源:origin: com.typesafe.play/play-cache_2.12

@Override
public <T> CompletionStage<Optional<T>> getOptional(String key) {
  return toJava(asyncCacheApi.get(key, Scala.<T>classTag())).thenApply(OptionConverters::toJava);
}

代码示例来源:origin: com.typesafe.play/play-cache

@Override
public <T> T getOrElseUpdate(String key, Callable<T> block, int expiration) {
 return scalaApi.getOrElseUpdate(key, intToDuration(expiration), Scala.asScala(block), Scala.classTag());
}

代码示例来源:origin: com.typesafe.play/play-cache

@Override
public <T> CompletionStage<Optional<T>> getOptional(String key) {
  return toJava(asyncCacheApi.get(key, Scala.<T>classTag())).thenApply(OptionConverters::toJava);
}

代码示例来源:origin: com.typesafe.play/play-cache_2.12

@Override
public <T> T getOrElseUpdate(String key, Callable<T> block, int expiration) {
 return scalaApi.getOrElseUpdate(key, intToDuration(expiration), Scala.asScala(block), Scala.classTag());
}

代码示例来源:origin: com.typesafe.play/play-cache_2.12

@Override
public <T> T getOrElseUpdate(String key, Callable<T> block) {
 return scalaApi.getOrElseUpdate(key, Duration.Inf(), Scala.asScala(block), Scala.classTag());
}

代码示例来源:origin: com.typesafe.play/play-cache_2.11

@Override
public <T> CompletionStage<T> getOrElseUpdate(String key, Callable<CompletionStage<T>> block, int expiration) {
  return toJava(
    asyncCacheApi.getOrElseUpdate(key, intToDuration(expiration), Scala.asScalaWithFuture(block), Scala.<T>classTag()));
}

代码示例来源:origin: com.typesafe.play/play-cache

@Override
public <T> CompletionStage<T> getOrElseUpdate(String key, Callable<CompletionStage<T>> block, int expiration) {
  return toJava(
    asyncCacheApi.getOrElseUpdate(key, intToDuration(expiration), Scala.asScalaWithFuture(block), Scala.<T>classTag()));
}

代码示例来源:origin: com.typesafe.play/play-cache_2.12

@Override
public <T> CompletionStage<T> getOrElseUpdate(String key, Callable<CompletionStage<T>> block, int expiration) {
  return toJava(
    asyncCacheApi.getOrElseUpdate(key, intToDuration(expiration), Scala.asScalaWithFuture(block), Scala.<T>classTag()));
}

代码示例来源:origin: com.typesafe.play/play-cache_2.11

@Override
public <T> CompletionStage<T> getOrElseUpdate(String key, Callable<CompletionStage<T>> block) {
  return toJava(asyncCacheApi.getOrElseUpdate(key, Duration.Inf(), Scala.asScalaWithFuture(block), Scala.<T>classTag()));
}

代码示例来源:origin: com.typesafe.play/play-cache

@Override
public <T> CompletionStage<T> getOrElseUpdate(String key, Callable<CompletionStage<T>> block) {
  return toJava(asyncCacheApi.getOrElseUpdate(key, Duration.Inf(), Scala.asScalaWithFuture(block), Scala.<T>classTag()));
}

相关文章