Package org.keycloak.services.util
Record Class Chunk
java.lang.Object
java.lang.Record
org.keycloak.services.util.Chunk
public record Chunk(String file, Optional<String> src, Optional<String> name, Optional<Boolean> isEntry, Optional<Boolean> isDynamicEntry, Optional<String[]> imports, Optional<String[]> dynamicImports, Optional<String[]> assets, Optional<String[]> css)
extends Record
Represents a chunk from the Vite build manifest (see
ViteManifest).-
Constructor Summary
ConstructorsConstructorDescriptionChunk(String file, Optional<String> src, Optional<String> name, Optional<Boolean> isEntry, Optional<Boolean> isDynamicEntry, Optional<String[]> imports, Optional<String[]> dynamicImports, Optional<String[]> assets, Optional<String[]> css) Creates an instance of aChunkrecord class. -
Method Summary
Modifier and TypeMethodDescriptionassets()Returns the value of theassetsrecord component.css()Returns the value of thecssrecord component.Returns the value of thedynamicImportsrecord component.final booleanIndicates whether some other object is "equal to" this one.file()Returns the value of thefilerecord component.final inthashCode()Returns a hash code value for this object.imports()Returns the value of theimportsrecord component.Returns the value of theisDynamicEntryrecord component.isEntry()Returns the value of theisEntryrecord component.name()Returns the value of thenamerecord component.src()Returns the value of thesrcrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Chunk
public Chunk(String file, Optional<String> src, Optional<String> name, Optional<Boolean> isEntry, Optional<Boolean> isDynamicEntry, Optional<String[]> imports, Optional<String[]> dynamicImports, Optional<String[]> assets, Optional<String[]> css) Creates an instance of aChunkrecord class.- Parameters:
file- the value for thefilerecord componentsrc- the value for thesrcrecord componentname- the value for thenamerecord componentisEntry- the value for theisEntryrecord componentisDynamicEntry- the value for theisDynamicEntryrecord componentimports- the value for theimportsrecord componentdynamicImports- the value for thedynamicImportsrecord componentassets- the value for theassetsrecord componentcss- the value for thecssrecord 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). -
file
Returns the value of thefilerecord component.- Returns:
- the value of the
filerecord component
-
src
Returns the value of thesrcrecord component.- Returns:
- the value of the
srcrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
isEntry
Returns the value of theisEntryrecord component.- Returns:
- the value of the
isEntryrecord component
-
isDynamicEntry
Returns the value of theisDynamicEntryrecord component.- Returns:
- the value of the
isDynamicEntryrecord component
-
imports
Returns the value of theimportsrecord component.- Returns:
- the value of the
importsrecord component
-
dynamicImports
Returns the value of thedynamicImportsrecord component.- Returns:
- the value of the
dynamicImportsrecord component
-
assets
Returns the value of theassetsrecord component.- Returns:
- the value of the
assetsrecord component
-
css
Returns the value of thecssrecord component.- Returns:
- the value of the
cssrecord component
-