Record Class ValueStackImpl
java.lang.Object
java.lang.Record
spring.turbo.bean.ValueStackImpl
- 记录组件:
environment-Environment实例resourceLoader-ResourceLoader实例conversionService-ConversionService实例
- 所有已实现的接口:
ValueStack
public record ValueStackImpl(org.springframework.core.env.Environment environment, org.springframework.core.io.ResourceLoader resourceLoader, org.springframework.core.convert.ConversionService conversionService)
extends Record
implements ValueStack
- 从以下版本开始:
- 2.2.4
- 作者:
- 应卓
-
构造器概要
构造器构造器说明ValueStackImpl(org.springframework.core.env.Environment environment, org.springframework.core.io.ResourceLoader resourceLoader, org.springframework.core.convert.ConversionService conversionService) 创建ValueStackImpl记录的实例。 -
方法概要
修饰符和类型方法说明org.springframework.core.convert.ConversionService返回conversionService记录组件的值。org.springframework.core.env.Environment返回environment记录组件的值。final boolean指示某个其他对象是否“等于”此对象。<T> TfindObject(Class<T> valueType, String environmentName, String resourceLocation, String defaultValue) findString(String environmentName, String resourceLocation, String defaultValue) final inthashCode()返回此对象的哈希代码值。org.springframework.core.io.ResourceLoader返回resourceLoader记录组件的值。final StringtoString()返回此记录的字符串表示形式。从接口继承的方法 spring.turbo.bean.ValueStack
findObject, findRequiredObject, findRequiredString, findString
-
构造器详细资料
-
ValueStackImpl
public ValueStackImpl(org.springframework.core.env.Environment environment, org.springframework.core.io.ResourceLoader resourceLoader, org.springframework.core.convert.ConversionService conversionService) 创建ValueStackImpl记录的实例。- 参数:
environment-environment记录组件的值resourceLoader-resourceLoader记录组件的值conversionService-conversionService记录组件的值
-
-
方法详细资料
-
findString
@Nullable public String findString(@Nullable String environmentName, @Nullable String resourceLocation, @Nullable String defaultValue) - 指定者:
findString在接口中ValueStack
-
findObject
@Nullable public <T> T findObject(@NonNull Class<T> valueType, @Nullable String environmentName, @Nullable String resourceLocation, @Nullable String defaultValue) - 指定者:
findObject在接口中ValueStack
-
toString
返回此记录的字符串表示形式。此表示形式包含类型的名称,后跟每个记录组件的名称和值。 -
hashCode
public final int hashCode()返回此对象的哈希代码值。此值派生自每个记录组件的哈希代码。 -
equals
指示某个其他对象是否“等于”此对象。如果两个对象属于同一个类,而且所有记录组件都相等,则这两个对象相等。 此记录中的所有组件都使用Objects::equals(Object,Object)进行比较。 -
environment
public org.springframework.core.env.Environment environment()返回environment记录组件的值。- 返回:
environment记录组件的值
-
resourceLoader
public org.springframework.core.io.ResourceLoader resourceLoader()返回resourceLoader记录组件的值。- 返回:
resourceLoader记录组件的值
-
conversionService
public org.springframework.core.convert.ConversionService conversionService()返回conversionService记录组件的值。- 返回:
conversionService记录组件的值
-