本文整理了Java中org.babyfish.lang.Arguments.mustNotBeArray()
方法的一些代码示例,展示了Arguments.mustNotBeArray()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Arguments.mustNotBeArray()
方法的具体详情如下:
包路径:org.babyfish.lang.Arguments
类名称:Arguments
方法名:mustNotBeArray
暂无
代码示例来源:origin: babyfish-ct/babyfish
private static void validateArgument(String name, Object entity) {
Arguments.mustNotBeNull(name, entity);
Arguments.mustNotBeArray(name, entity.getClass());
Arguments.mustNotBePrimitive(name, entity.getClass());
}
代码示例来源:origin: babyfish-ct/babyfish
Arguments.mustNotBeAnnotation("rawType", rawType);
Arguments.mustNotBePrimitive("rawType", rawType);
Arguments.mustNotBeArray("rawType", rawType);
this.rawType = rawType;
this.rawInternalName = ASM.getInternalName(rawType);
代码示例来源:origin: babyfish-ct/babyfish
public CompoundSelectionImpl(
XCriteriaBuilder criteriaBuilder,
Class<? extends X> javaType,
Iterable<Selection<?>> compoundSelectionItems) {
super(criteriaBuilder);
Arguments.mustNotBeNull("javaType", javaType);
List<Selection<?>> list;
if (compoundSelectionItems != null) {
if (compoundSelectionItems instanceof Collection<?>) {
list = new ArrayList<>(((Collection<?>)compoundSelectionItems).size());
} else {
list = new ArrayList<>();
}
int index = 0;
for (Selection<?> selection : compoundSelectionItems) {
if (selection != null) {
Class<?> subJavaType = selection.getJavaType();
Arguments.mustNotBeArray("compoundSelectionItems[" + index + ']', subJavaType);
Arguments.mustNotBeCompatibleWithValue("compoundSelectionItems[" + index + ']', subJavaType, Tuple.class);
this.mustUnderSameCriteriaBuilder("compoundSelectionItems[" + index + ']', selection);
list.add(selection);
}
index++;
}
} else {
list = MACollections.emptyList();
}
this.javaType = javaType;
this.compoundSelectionItems = MACollections.unmodifiable(list);
}
内容来源于网络,如有侵权,请联系作者删除!