graphql.Assert.assertFalse()方法的使用及代码示例

x33g5p2x  于2022-01-17 转载在 其他  
字(1.4k)|赞(0)|评价(0)|浏览(198)

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

Assert.assertFalse介绍

暂无

代码示例

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

@Override
public T thisNode() {
  assertFalse(this.nodeDeleted, "node is deleted");
  if (newNode != null) {
    return newNode;
  }
  return curNode;
}

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

@Override
public void changeNode(T newNode) {
  assertNotNull(newNode);
  assertFalse(this.nodeDeleted, "node is deleted");
  this.newNode = newNode;
}

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

@Override
public void deleteNode() {
  assertNull(this.newNode, "node is already changed");
  assertFalse(this.nodeDeleted, "node is already deleted");
  this.nodeDeleted = true;
}

代码示例来源:origin: com.graphql-java/graphql-java

@Override
public T thisNode() {
  assertFalse(this.nodeDeleted, "node is deleted");
  if (newNode != null) {
    return newNode;
  }
  return curNode;
}

代码示例来源:origin: com.graphql-java/graphql-java

@Override
public void changeNode(T newNode) {
  assertNotNull(newNode);
  assertFalse(this.nodeDeleted, "node is deleted");
  this.newNode = newNode;
}

代码示例来源:origin: com.graphql-java/graphql-java

@Override
public void deleteNode() {
  assertNull(this.newNode, "node is already changed");
  assertFalse(this.nodeDeleted, "node is already deleted");
  this.nodeDeleted = true;
}

相关文章