Package org.xhtmlrenderer.test
Record Class DelegatingReplacedElementFactory.ERItem
java.lang.Object
java.lang.Record
org.xhtmlrenderer.test.DelegatingReplacedElementFactory.ERItem
- Enclosing class:
DelegatingReplacedElementFactory
private static record DelegatingReplacedElementFactory.ERItem(Element element, ElementReplacer elementReplacer)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Element
The field for theelement
record component.private final ElementReplacer
The field for theelementReplacer
record component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
ERItem
(Element element, ElementReplacer elementReplacer) Creates an instance of aERItem
record class. -
Method Summary
Modifier and TypeMethodDescriptionelement()
Returns the value of theelement
record component.Returns the value of theelementReplacer
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
element
The field for theelement
record component. -
elementReplacer
The field for theelementReplacer
record component.
-
-
Constructor Details
-
ERItem
Creates an instance of aERItem
record class.- Parameters:
element
- the value for theelement
record componentelementReplacer
- the value for theelementReplacer
record component
-
-
Method Details
-
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. -
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. -
equals
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 withObjects::equals(Object,Object)
. -
element
Returns the value of theelement
record component.- Returns:
- the value of the
element
record component
-
elementReplacer
Returns the value of theelementReplacer
record component.- Returns:
- the value of the
elementReplacer
record component
-