Class FieldRegistry.Default

  • All Implemented Interfaces:
    FieldRegistry
    Enclosing interface:
    FieldRegistry

    public static class FieldRegistry.Default
    extends java.lang.Object
    implements FieldRegistry
    An immutable default implementation of a field registry.
    • Constructor Detail

      • Default

        public Default()
        Creates a new empty default field registry.
    • Method Detail

      • prepend

        public FieldRegistry prepend​(LatentMatcher<? super FieldDescription> matcher,
                                     FieldAttributeAppender.Factory fieldAttributeAppenderFactory,
                                     java.lang.Object defaultValue,
                                     Transformer<FieldDescription> transformer)
        Description copied from interface: FieldRegistry
        Prepends the given field definition to this field registry, i.e. this configuration is applied first.
        Specified by:
        prepend in interface FieldRegistry
        Parameters:
        matcher - The matcher to identify any field that this definition concerns.
        fieldAttributeAppenderFactory - The field attribute appender factory to apply on any matched field.
        defaultValue - The default value to write to the field or null if no default value is to be set for the field.
        transformer - The field transformer to apply to any matched field.
        Returns:
        An adapted version of this method registry.