Package com.onec.print
Record Class PrintTemplateDescriptor
java.lang.Object
java.lang.Record
com.onec.print.PrintTemplateDescriptor
-
Constructor Summary
ConstructorsConstructorDescriptionPrintTemplateDescriptor(Class<?> target, String name, String label, String template, PrintFormat format, int order) Creates an instance of aPrintTemplateDescriptorrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.format()Returns the value of theformatrecord component.final inthashCode()Returns a hash code value for this object.label()Returns the value of thelabelrecord component.name()Returns the value of thenamerecord component.intorder()Returns the value of theorderrecord component.Class<?> target()Returns the value of thetargetrecord component.template()Returns the value of thetemplaterecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PrintTemplateDescriptor
public PrintTemplateDescriptor(Class<?> target, String name, String label, String template, PrintFormat format, int order) Creates an instance of aPrintTemplateDescriptorrecord class.- Parameters:
target- the value for thetargetrecord componentname- the value for thenamerecord componentlabel- the value for thelabelrecord componenttemplate- the value for thetemplaterecord componentformat- the value for theformatrecord componentorder- the value for theorderrecord component
-
-
Method Details
-
resolvedLabel
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
target
Returns the value of thetargetrecord component.- Returns:
- the value of the
targetrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
label
Returns the value of thelabelrecord component.- Returns:
- the value of the
labelrecord component
-
template
Returns the value of thetemplaterecord component.- Returns:
- the value of the
templaterecord component
-
format
Returns the value of theformatrecord component.- Returns:
- the value of the
formatrecord component
-
order
public int order()Returns the value of theorderrecord component.- Returns:
- the value of the
orderrecord component
-