org.babyfish.lang.Arguments.mustNotBeInstanceOfAnyOfValue()方法的使用及代码示例

x33g5p2x  于2022-01-16 转载在 其他  
字(2.4k)|赞(0)|评价(0)|浏览(84)

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

Arguments.mustNotBeInstanceOfAnyOfValue介绍

暂无

代码示例

代码示例来源:origin: babyfish-ct/babyfish

protected static <T, S extends Selection<T>> S mustHaveExplicitDataType(
    String argumentName, S argumentValue) {
  return Arguments.mustNotBeInstanceOfAnyOfValue(
      argumentName, 
      argumentValue, 
      ParameterExpression.class,
      LiteralExpression.class
  );
}

代码示例来源:origin: babyfish-ct/babyfish

private UncheckedException(Throwable cause) {
  super(
      Arguments.mustNotBeInstanceOfAnyOfValue(
          "cause", 
          Arguments.mustNotBeNull("cause", cause), 
          RuntimeException.class, 
          Error.class
      )
  );
}

代码示例来源:origin: babyfish-ct/babyfish

public WhenClause(Expression<Boolean> condition, Expression<? extends R> result) {
  this.condition = Arguments.mustNotBeNull("condition", condition);
  this.result = Arguments.mustNotBeInstanceOfAnyOfValue(
      "result", 
      Arguments.mustNotBeNull("result", result), 
      ParameterExpression.class,
      LiteralExpression.class);
}

代码示例来源:origin: babyfish-ct/babyfish

public WhenClause(C condition, Expression<? extends R> result) {
  this.condition = Arguments.mustNotBeNull("condition", condition);
  this.result = Arguments.mustNotBeInstanceOfAnyOfValue(
      "result", 
      Arguments.mustNotBeNull("result", result), 
      ParameterExpression.class,
      LiteralExpression.class);
}

代码示例来源:origin: babyfish-ct/babyfish

@Override
public Expression<R> otherwise(Expression<? extends R> result) {
  this.checkState();
  Arguments.mustNotBeInstanceOfAnyOfValue(
  "result", 
  this.mustUnderSameCriteriaBuilder(
      "result", 
      Arguments.mustNotBeNull("result", result)
  ), 
  ParameterExpression.class,
  LiteralExpression.class);
  this.otherwiseResult = result;
  return this;
}

代码示例来源:origin: babyfish-ct/babyfish

@Override
public Expression<R> otherwise(Expression<? extends R> result) {
  this.checkState();
  Arguments.mustNotBeInstanceOfAnyOfValue(
      "result", 
      this.mustUnderSameCriteriaBuilder(
          "result", 
          Arguments.mustNotBeNull("result", result)
      ), 
      ParameterExpression.class,
      LiteralExpression.class);
  this.otherwiseResult = result;
  return this;
}

相关文章