play.libs.F.None()方法的使用及代码示例

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

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

F.None介绍

[英]Constructs a None value.
[中]构造一个None值。

代码示例

代码示例来源:origin: com.typesafe.play/play_2.10

/**
 * Constructs a left side of the disjoint union, as opposed to the Right side.
 *
 * @param value The value of the left side
 * @return A left sided disjoint union
 */
public static <A, B> Either<A, B> Left(A value) {
  return new Either<A, B>(Some(value), None());
}

代码示例来源:origin: com.typesafe.play/play_2.10

/**
 * Constructs a right side of the disjoint union, as opposed to the Left side.
 *
 * @param value The value of the right side
 * @return A right sided disjoint union
 */
public static <A, B> Either<A, B> Right(B value) {
  return new Either<A, B>(None(), Some(value));
}

代码示例来源:origin: play/play-java

@SuppressWarnings("unchecked")
public Form(String name, Class<T> clazz) {
  this(name, clazz, new HashMap<String,String>(), new HashMap<String,List<ValidationError>>(), None(),  null);
}

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

@SuppressWarnings("unchecked")
public Form(String name, Class<T> clazz) {
  this(name, clazz, new HashMap<String,String>(), new HashMap<String,List<ValidationError>>(), None(),  null);
}

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

@SuppressWarnings("unchecked")
public Form(String name, Class<T> clazz, Class<?> groups) {
  this(name, clazz, new HashMap<String,String>(), new HashMap<String,List<ValidationError>>(), None(), groups);
}

代码示例来源:origin: play/play-java

@SuppressWarnings("unchecked")
public Form(String name, Class<T> clazz, Class<?> groups) {
  this(name, clazz, new HashMap<String,String>(), new HashMap<String,List<ValidationError>>(), None(), groups);
}

代码示例来源:origin: play/play-java

return new Form(rootName, backedType, data, errors, None(), groups);
} else {
  Object globalError = null;
      errors = (Map<String,List<ValidationError>>)globalError;
    return new Form(rootName, backedType, data, errors, None(), groups);

相关文章

微信公众号

最新文章

更多