Interface Decorator<T>

Type Parameters:
T - the type of object to decorate
All Known Subinterfaces:
JsonGeneratorDecorator, MapperBuilderDecorator<M,B>, TokenStreamFactoryBuilderDecorator<F,B>
All Known Implementing Classes:
CborWriteFeatureDecorator, CharacterEscapesDecorator, CompositeDecorator, CompositeJsonGeneratorDecorator, CompositeMapperBuilderDecorator, CompositeTokenStreamFactoryBuilderDecorator, DateTimeFeatureDecorator, EnumFeatureDecorator, FeatureDecorator, JsonNodeFeatureDecorator, JsonWriteFeatureDecorator, MapperFeatureDecorator, MaskingJsonGeneratorDecorator, PrettyPrintingDecorator, SerializationFeatureDecorator, SmileWriteFeatureDecorator, StreamWriteFeatureDecorator, TokenStreamFactoryFeatureDecorator, YamlWriteFeatureDecorator

public interface Decorator<T>
Decorates an object.
  • Method Summary

    Modifier and Type
    Method
    Description
    decorate(T decoratable)
    Decorates the given decoratable.
  • Method Details

    • decorate

      T decorate(T decoratable)
      Decorates the given decoratable.
      Parameters:
      decoratable - the object to decorate
      Returns:
      the decorated object (can be a different from the object passed in as an arg)