public class FormattableToStringResolver extends java.lang.Object implements ToStringResolver, ConfigurationCreatableItem
Constructor and Description |
---|
FormattableToStringResolver(Configuration config) |
FormattableToStringResolver(java.lang.String quantifier,
java.lang.String query,
java.lang.String format,
int priority) |
Modifier and Type | Method and Description |
---|---|
boolean |
createdFromConfiguration()
Indicates whether this object was created from a configuration object.
|
java.util.Set<Resolver> |
getApplicableResolvers(java.util.Set<Resolver> rootResolvers)
Get the set of resolvers to which this ToStringResolver object possibly applies to, starting evaluation at the
given set of root resolvers.
|
int |
getPriority()
Get the priority assigned to this resolver.
|
java.util.Optional<java.lang.String> |
resolveToString(Resolver resolver)
Resolves the given resolver to a string value.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getApplicableResolvers
isCreatedFromConfiguration
public FormattableToStringResolver(java.lang.String quantifier, java.lang.String query, java.lang.String format, int priority)
public FormattableToStringResolver(Configuration config)
public java.util.Set<Resolver> getApplicableResolvers(java.util.Set<Resolver> rootResolvers)
ToStringResolver
getApplicableResolvers
in interface ToStringResolver
rootResolvers
- The root resolvers to start evaluation at.public java.util.Optional<java.lang.String> resolveToString(Resolver resolver)
ToStringResolver
ToStringResolver.getApplicableResolvers(Set)
returned the given resolver.resolveToString
in interface ToStringResolver
resolver
- The resolver to resolve to a string value.public int getPriority()
ToStringResolver
getPriority
in interface ToStringResolver
public boolean createdFromConfiguration()
ConfigurationCreatableItem
createdFromConfiguration
in interface ConfigurationCreatableItem