Record Class FixedDocument.Image
java.lang.Object
java.lang.Record
io.leandev.appfuse.pdf.FixedDocument.Image
- All Implemented Interfaces:
FixedDocument.Element
- Enclosing class:
FixedDocument
public static record FixedDocument.Image(String id, FixedDocument.Layer layer, FixedDocument.Frame frame, byte[] bytes, String mediaType)
extends Record
implements FixedDocument.Element
PNG/JPEG 於框中等比置中,不拉伸;位元組防禦複製。
- Since:
- 4.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionImage(String id, FixedDocument.Layer layer, FixedDocument.Frame frame, byte[] bytes, String mediaType) Creates an instance of aImagerecord class. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]bytes()Returns the value of thebytesrecord component.final booleanIndicates whether some other object is "equal to" this one.frame()Returns the value of theframerecord component.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.layer()Returns the value of thelayerrecord component.Returns the value of themediaTyperecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
Image
public Image(String id, FixedDocument.Layer layer, FixedDocument.Frame frame, byte[] bytes, String mediaType) Creates an instance of aImagerecord class.- Parameters:
id- the value for theidrecord componentlayer- the value for thelayerrecord componentframe- the value for theframerecord componentbytes- the value for thebytesrecord componentmediaType- the value for themediaTyperecord component
-
-
Method Details
-
bytes
public byte[] bytes()Returns the value of thebytesrecord component.- Returns:
- the value of the
bytesrecord component
-
toString
-
hashCode
-
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). -
id
Returns the value of theidrecord component.- Specified by:
idin interfaceFixedDocument.Element- Returns:
- the value of the
idrecord component
-
layer
Returns the value of thelayerrecord component.- Specified by:
layerin interfaceFixedDocument.Element- Returns:
- the value of the
layerrecord component
-
frame
Returns the value of theframerecord component.- Returns:
- the value of the
framerecord component
-
mediaType
Returns the value of themediaTyperecord component.- Returns:
- the value of the
mediaTyperecord component
-