Class Implementation.Compound

java.lang.Object
net.bytebuddy.implementation.Implementation.Compound
All Implemented Interfaces:
InstrumentedType.Prepareable, Implementation
Enclosing interface:
Implementation

@Enhance public static class Implementation.Compound extends Object implements Implementation
A compound implementation that allows to combine several implementations.

 

Note that the combination of two implementation might break the contract for implementing Object.equals(Object) and Object.hashCode() as described for Implementation.
See Also:
  • Field Details

    • implementations

      private final List<Implementation> implementations
      All implementation that are represented by this compound implementation.
  • Constructor Details

    • Compound

      public Compound(Implementation... implementation)
      Creates a new immutable compound implementation.
      Parameters:
      implementation - The implementations to combine in their order.
    • Compound

      public Compound(List<? extends Implementation> implementations)
      Creates a new immutable compound implementation.
      Parameters:
      implementations - The implementations to combine in their order.
  • Method Details