javaslang.control.Validation.get()方法的使用及代码示例

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

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

Validation.get介绍

暂无

代码示例

代码示例来源:origin: com.io7m.smfj/io7m-smfj-format-text

final SMFFormatVersion version = v_version.get();
super.events.onVersionReceived(version);
switch (version.major()) {

代码示例来源:origin: com.io7m.smfj/com.io7m.smfj.validation.main

this.parseStatementIdentifier(line);
if (result.isValid()) {
 final SMFSchemaIdentifier p = result.get();
 this.received_identifier = true;
 builder.setSchemaIdentifier(p);
 this.parseStatementCoordinates(line);
if (result.isValid()) {
 builder.setRequiredCoordinateSystem(result.get());
 return errors;
 this.parseStatementRequireVertices(line);
if (result.isValid()) {
 builder.setRequireVertices(result.get());
 return errors;
 this.parseStatementRequireTriangles(line);
if (result.isValid()) {
 builder.setRequireTriangles(result.get());
 return errors;
 this.parseStatementAttribute(line);
if (result.isValid()) {
 final Tuple2<Boolean, SMFSchemaAttribute> p = result.get();
 final boolean required = p._1.booleanValue();
 if (required) {

代码示例来源:origin: com.io7m.smfj/com.io7m.smfj.bytebuffer

this.config = result.get();

代码示例来源:origin: com.io7m.smfj/com.io7m.smfj.validation.main

final SMFSchemaVersion version = r_version.get();
if (version.major() == 1) {
 return new ParserV1(version, reader, this.uri).parseSchema();

代码示例来源:origin: com.io7m.smfj/com.io7m.smfj.processing.main

final Validation<List<SMFErrorType>, SMFSchema> result_schema = parser.parseSchema();
if (result_schema.isValid()) {
 final SMFSchema schema = result_schema.get();
 final Validation<List<SMFErrorType>, SMFHeader> result_valid =
  validator.validate(m.header(), schema);

相关文章