public static final class AbstractResourceLoadingConfiguration.Resource<T> extends Object implements Supplier<T>
Supplier
of a particular kind of resource from which
configuration property values may be retrieved.Constructor and Description |
---|
Resource(T resource,
Map<String,String> coordinates)
Creates a new
AbstractResourceLoadingConfiguration.Resource . |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other)
|
T |
get()
Returns the actual underlying source of configuration property
values, typically for use by implementations of the
AbstractResourceLoadingConfiguration.getValue(Resource, Map,
String) method. |
Map<String,String> |
getCoordinates()
Returns an immutable
Map representing the configuration
coordinates for which this AbstractResourceLoadingConfiguration.Resource can assist in
providing values. |
int |
hashCode()
Returns a hashcode for this
AbstractResourceLoadingConfiguration.Resource . |
public Resource(T resource, Map<String,String> coordinates)
AbstractResourceLoadingConfiguration.Resource
.resource
- the actual underlying source of configuration
property values; may be null
coordinates
- the configuration coordinates this AbstractResourceLoadingConfiguration.Resource
provides values for; may be null
public final T get()
AbstractResourceLoadingConfiguration.getValue(Resource, Map,
String)
method.
This method may return null
.
public final Map<String,String> getCoordinates()
Map
representing the configuration
coordinates for which this AbstractResourceLoadingConfiguration.Resource
can assist in
providing values.
This method may return null
.
null
public int hashCode()
AbstractResourceLoadingConfiguration.Resource
.hashCode
in class Object
AbstractResourceLoadingConfiguration.Resource
equals(Object)
Copyright © 2017–2019, microBean. All rights reserved.