Record Class FontSource.Bytes
java.lang.Object
java.lang.Record
io.leandev.appfuse.report.FontSource.Bytes
- Record Components:
name- 用於錯誤訊息的名稱bytes- 位元組提供者
- All Implemented Interfaces:
FontSource
- Enclosing interface:
FontSource
public static record FontSource.Bytes(String name, Supplier<byte[]> bytes)
extends Record
implements FontSource
由應用提供位元組;每次讀取都呼叫 supplier
- Since:
- 4.0.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface FontSource
FontSource.Bytes, FontSource.Classpath, FontSource.File -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSupplier<byte[]> bytes()Returns the value of thebytesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Bytes
-
-
Method Details
-
description
- Specified by:
descriptionin interfaceFontSource- Returns:
- 用於錯誤訊息的描述
-
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). -
name
-
bytes
-