Record Class PropertySourceDescriptor
java.lang.Object
java.lang.Record
cn.taketoday.core.io.PropertySourceDescriptor
- 记录组件:
locations- the locations to considerignoreResourceNotFound- whether to fail if a location does not existname- the name of the property source, ornullto infer onepropertySourceFactory- thePropertySourceFactoryto use, ornullto use the defaultencoding- the encoding, ornullto use the default encoding
public record PropertySourceDescriptor(List<String> locations, boolean ignoreResourceNotFound, String name, Class<? extends PropertySourceFactory> propertySourceFactory, String encoding)
extends Record
Describe a
PropertySource.- 从以下版本开始:
- 4.0
- 作者:
- Stephane Nicoll, Harry Yang
-
字段概要
字段修饰符和类型字段说明private final Stringencoding记录组件的字段。private final booleanignoreResourceNotFound记录组件的字段。locations记录组件的字段。private final Stringname记录组件的字段。private final Class<? extends PropertySourceFactory>propertySourceFactory记录组件的字段。 -
构造器概要
构造器构造器说明PropertySourceDescriptor(String... locations) Create a descriptor with the specified locations.PropertySourceDescriptor(List<String> locations, boolean ignoreResourceNotFound, String name, Class<? extends PropertySourceFactory> propertySourceFactory, String encoding) 创建PropertySourceDescriptor记录的实例。 -
方法概要
修饰符和类型方法说明encoding()返回encoding记录组件的值。final boolean指示某个其他对象是否“等于”此对象。final inthashCode()返回此对象的哈希代码值。boolean返回ignoreResourceNotFound记录组件的值。返回locations记录组件的值。name()返回name记录组件的值。Class<? extends PropertySourceFactory>返回propertySourceFactory记录组件的值。final StringtoString()返回此记录的字符串表示形式。
-
字段详细资料
-
locations
locations记录组件的字段。 -
ignoreResourceNotFound
private final boolean ignoreResourceNotFoundignoreResourceNotFound记录组件的字段。 -
name
name记录组件的字段。 -
propertySourceFactory
propertySourceFactory记录组件的字段。 -
encoding
encoding记录组件的字段。
-
-
构造器详细资料
-
PropertySourceDescriptor
Create a descriptor with the specified locations.- 参数:
locations- the locations to consider
-
PropertySourceDescriptor
public PropertySourceDescriptor(List<String> locations, boolean ignoreResourceNotFound, @Nullable String name, @Nullable Class<? extends PropertySourceFactory> propertySourceFactory, @Nullable String encoding) 创建PropertySourceDescriptor记录的实例。- 参数:
locations-locations记录组件的值ignoreResourceNotFound-ignoreResourceNotFound记录组件的值name-name记录组件的值propertySourceFactory-propertySourceFactory记录组件的值encoding-encoding记录组件的值
-
-
方法详细资料
-
toString
返回此记录的字符串表示形式。此表示形式包含类型的名称,后跟每个记录组件的名称和值。 -
hashCode
public final int hashCode()返回此对象的哈希代码值。此值派生自每个记录组件的哈希代码。 -
equals
指示某个其他对象是否“等于”此对象。如果两个对象属于同一个类,而且所有记录组件都相等,则这两个对象相等。 使用Objects::equals(Object,Object)对参考组件进行比较;使用 '==' 对基元组件进行比较 -
locations
返回locations记录组件的值。- 返回:
locations记录组件的值
-
ignoreResourceNotFound
public boolean ignoreResourceNotFound()返回ignoreResourceNotFound记录组件的值。- 返回:
ignoreResourceNotFound记录组件的值
-
name
返回name记录组件的值。- 返回:
name记录组件的值
-
propertySourceFactory
返回propertySourceFactory记录组件的值。- 返回:
propertySourceFactory记录组件的值
-
encoding
返回encoding记录组件的值。- 返回:
encoding记录组件的值
-