com.google.common.base.Preconditions
com.google.common.base.Predicates
com.google.common.collect.Iterables
com.google.common.collect.Lists
com.google.common.collect.Maps
com.google.common.collect.Sets
org.apache.commons.lang.StringUtils
org.junit.Assert
静态导入配置后,写代码只需要
package com.study.utils;
import static com.google.common.base.Preconditions.checkArgument;
public class L12 {
public static void main(String[] args) {
int i = 9;
int j = 10;
checkArgument(i >= 0, "Argument was %s but expected nonnegative", i);
checkArgument(i < j, "Expected i < j, but %s > %s", i, j);
class反编译后,还是还原成用类名调用静态方法