String str = "Hello, world!"; boolean isNullOrEmpty = StringUtils.isEmpty(str); String tsStr = "Hello, world!"; boolean isNullOrEmptyTs = TsStringUtils.isNullOrEmpty(tsStr); List<Integer> numbers = Lists.newArrayList(1, 2, 3, 4, 5); List<Integer> filteredList = numbers.stream() .filter(n -> n > 3) .collect(Collectors.toList()); List<Integer> tsNumbers = TsList.of(1, 2, 3, 4, 5); List<Integer> tsFilteredList = TsCollectionUtils.filter(tsNumbers, n -> n > 3); <dependencies> <dependency> <groupId>com.tslib</groupId> <artifactId>tslib</artifactId> <version>1.0.0</version> </dependency> </dependencies> import com.tslib.utils.TsStringUtils; import com.tslib.utils.TsCollectionUtils;


上一篇:
下一篇:
切换中文