spring.turbo.core.ApplicationArgumentsUtils Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spring-turbo Show documentation
Show all versions of spring-turbo Show documentation
Another enhancement library of SpringBoot/SpringFramework. Have fun.
The newest version!
package spring.turbo.core;
import java.util.List;
import java.util.Set;
import static spring.turbo.core.SpringUtils.getApplicationArguments;
/**
* {@link org.springframework.boot.ApplicationArguments} 相关工具
*
* @author 应卓
* @see org.springframework.boot.ApplicationArguments
* @since 3.0.7
*/
public final class ApplicationArgumentsUtils {
/**
* 私有构造方法
*/
private ApplicationArgumentsUtils() {
}
public static Set getOptionNames() {
return getApplicationArguments().getOptionNames();
}
public static boolean containsOption(String name) {
return getApplicationArguments().containsOption(name);
}
public static List getOptionValues(String name) {
return getApplicationArguments().getOptionValues(name);
}
public static List getNonOptionArgs() {
return getApplicationArguments().getNonOptionArgs();
}
}