本文整理了Java中scala.collection.mutable.Map.toSeq()
方法的一些代码示例,展示了Map.toSeq()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Map.toSeq()
方法的具体详情如下:
包路径:scala.collection.mutable.Map
类名称:Map
方法名:toSeq
暂无
代码示例来源:origin: com.typesafe.play/play_2.10
/**
* Converts a Java Map to Scala.
*/
public static <A,B> scala.collection.immutable.Map<A,B> asScala(Map<A,B> javaMap) {
return play.utils.Conversions.newMap(
scala.collection.JavaConverters.mapAsScalaMapConverter(javaMap).asScala().toSeq()
);
}
代码示例来源:origin: com.typesafe.play/play_2.11
/**
* Converts a Java Map to Scala.
*
* @param javaMap the java map
* @param <K> key type
* @param <V> value type
* @return the scala map.
*/
public static <K, V> scala.collection.immutable.Map<K, V> asScala(Map<K, V> javaMap) {
return play.utils.Conversions.newMap(
scala.collection.JavaConverters.mapAsScalaMapConverter(javaMap).asScala().toSeq()
);
}
代码示例来源:origin: com.typesafe.play/play_2.12
/**
* Converts a Java Map to Scala.
*
* @param javaMap the java map
* @param <K> key type
* @param <V> value type
* @return the scala map.
*/
public static <K, V> scala.collection.immutable.Map<K, V> asScala(Map<K, V> javaMap) {
return play.utils.Conversions.newMap(
scala.collection.JavaConverters.mapAsScalaMapConverter(javaMap).asScala().toSeq()
);
}
代码示例来源:origin: com.typesafe.play/play
/**
* Converts a Java Map to Scala.
*
* @param javaMap the java map
* @param <K> key type
* @param <V> value type
* @return the scala map.
*/
public static <K, V> scala.collection.immutable.Map<K, V> asScala(Map<K, V> javaMap) {
return play.utils.Conversions.newMap(
scala.collection.JavaConverters.mapAsScalaMapConverter(javaMap).asScala().toSeq()
);
}
代码示例来源:origin: com.typesafe.play/play-java-ws
/**
* Retrieve the URL where the user should be redirected to start the OpenID authentication process
*/
@Override
public CompletionStage<String> redirectURL(
String openID, String callbackURL, Map<String, String> axRequired, Map<String, String> axOptional, String realm) {
if (axRequired == null) axRequired = new HashMap<>();
if (axOptional == null) axOptional = new HashMap<>();
return FutureConverters.toJava(client.redirectURL(openID,
callbackURL,
JavaConversions.mapAsScalaMap(axRequired).toSeq(),
JavaConversions.mapAsScalaMap(axOptional).toSeq(),
Scala.Option(realm)));
}
代码示例来源:origin: com.twitter/summingbird-storm-java
@SuppressWarnings("unchecked") // apply returns a raw Map ...
private static <K, V> scala.collection.immutable.Map<K, V> toScalaMap(Map<K, V> map) {
return scala.collection.immutable.Map$.MODULE$.apply(JavaConversions.asScalaMap(map).toSeq());
}
代码示例来源:origin: play/play-java
/**
* Retrieve the URL where the user should be redirected to start the OpenID authentication process
*/
public static F.Promise<String> redirectURL(String openID,
String callbackURL,
Map<String, String> axRequired,
Map<String, String> axOptional,
String realm) {
if (axRequired == null) axRequired = new HashMap<String, String>();
if (axOptional == null) axOptional = new HashMap<String, String>();
return new F.Promise<String>(play.api.libs.openid.OpenID.redirectURL(openID,
callbackURL,
JavaConversions.mapAsScalaMap(axRequired).toSeq(),
JavaConversions.mapAsScalaMap(axOptional).toSeq(),
Scala.Option(realm)));
}
代码示例来源:origin: com.sandinh/play-alone
/**
* Converts a Java Map to Scala.
*/
public static <A,B> scala.collection.immutable.Map<A,B> asScala(Map<A,B> javaMap) {
return play.utils.Conversions.newMap(
scala.collection.JavaConverters.mapAsScalaMapConverter(javaMap).asScala().toSeq()
);
}
内容来源于网络,如有侵权,请联系作者删除!