Record Class TransformImpl.ResolvedTransformImpl<E extends ClassFileElement>

java.lang.Object
java.lang.Record
org.glavo.classfile.impl.TransformImpl.ResolvedTransformImpl<E>
All Implemented Interfaces:
ClassFileTransform.ResolvedTransform<E>
Enclosing class:
TransformImpl

public static record TransformImpl.ResolvedTransformImpl<E extends ClassFileElement>(Consumer<E extends ClassFileElement> consumer, Runnable endHandler, Runnable startHandler) extends Record implements ClassFileTransform.ResolvedTransform<E>
  • Constructor Details

    • ResolvedTransformImpl

      public ResolvedTransformImpl(Consumer<E> consumer)
    • ResolvedTransformImpl

      public ResolvedTransformImpl(Consumer<E> consumer, Runnable endHandler, Runnable startHandler)
      Creates an instance of a ResolvedTransformImpl record class.
      Parameters:
      consumer - the value for the consumer record component
      endHandler - the value for the endHandler record component
      startHandler - the value for the startHandler record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • consumer

      public Consumer<E> consumer()
      Returns the value of the consumer record component.
      Specified by:
      consumer in interface ClassFileTransform.ResolvedTransform<E extends ClassFileElement>
      Returns:
      the value of the consumer record component
    • endHandler

      public Runnable endHandler()
      Returns the value of the endHandler record component.
      Specified by:
      endHandler in interface ClassFileTransform.ResolvedTransform<E extends ClassFileElement>
      Returns:
      the value of the endHandler record component
    • startHandler

      public Runnable startHandler()
      Returns the value of the startHandler record component.
      Specified by:
      startHandler in interface ClassFileTransform.ResolvedTransform<E extends ClassFileElement>
      Returns:
      the value of the startHandler record component