public static class PropertyStore.Property extends Object
Modifier and Type | Method and Description |
---|---|
<T> T |
as(Class<T> c)
Converts this property to the specified type.
|
<T> T[] |
asArray(Class<T> eType)
Converts this property to the specified array type.
|
<T> T |
asInstance(Object outer,
Class<T> iType,
ResourceResolver resolver,
Object... args)
Converts this property to the specified instance type.
|
<T> T[] |
asInstanceArray(Object outer,
Class<T> eType,
ResourceResolver resolver,
Object... args)
Converts this property to an array of specified instance type.
|
<T> List<T> |
asList(Class<T> eType)
Converts this property to the specified list type.
|
<T> Map<String,T> |
asMap(Class<T> eType)
Converts this property to the specified map type.
|
<T> Set<T> |
asSet(Class<T> eType)
Converts this property to the specified set type.
|
boolean |
equals(Object o) |
int |
hashCode() |
Object |
swap()
Converts this object to serializable form.
|
public <T> T as(Class<T> c)
T
- The type to convert the property to.c
- The type to convert the property to.ConfigException
- If value could not be converted.public <T> T[] asArray(Class<T> eType)
T
- The element type to convert the property to.eType
- The element type to convert the property to.ConfigException
- If value could not be converted.public <T> Set<T> asSet(Class<T> eType)
T
- The element type to convert the property to.eType
- The element type to convert the property to.ConfigException
- If value could not be converted.public <T> List<T> asList(Class<T> eType)
T
- The element type to convert the property to.eType
- The element type to convert the property to.ConfigException
- If value could not be converted.public <T> Map<String,T> asMap(Class<T> eType)
T
- The element type to convert the property to.eType
- The element type to convert the property to.ConfigException
- If value could not be converted.public <T> T asInstance(Object outer, Class<T> iType, ResourceResolver resolver, Object... args)
T
- The type to instantiate.outer
- The outer class if this is a member type.iType
- The type to instantiate.resolver
- The resource resolver.args
- The arguments to pass to the constructor.ConfigException
- If value could not be instantiated.public <T> T[] asInstanceArray(Object outer, Class<T> eType, ResourceResolver resolver, Object... args)
T
- The type to instantiate.outer
- The outer class if this is a member type.eType
- The entry type to instantiate.resolver
- The resource resolver.args
- The arguments to pass to the constructor.ConfigException
- If value could not be instantiated.Copyright © 2016–2019 The Apache Software Foundation. All rights reserved.