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
ConstructorDescriptionChunk
(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 aChunk
record class. -
Method Summary
Modifier and TypeMethodDescriptionassets()
Returns the value of theassets
record component.css()
Returns the value of thecss
record component.Returns the value of thedynamicImports
record component.final boolean
Indicates whether some other object is "equal to" this one.file()
Returns the value of thefile
record component.final int
hashCode()
Returns a hash code value for this object.imports()
Returns the value of theimports
record component.Returns the value of theisDynamicEntry
record component.isEntry()
Returns the value of theisEntry
record component.name()
Returns the value of thename
record component.src()
Returns the value of thesrc
record component.final String
toString()
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 aChunk
record class.- Parameters:
file
- the value for thefile
record componentsrc
- the value for thesrc
record componentname
- the value for thename
record componentisEntry
- the value for theisEntry
record componentisDynamicEntry
- the value for theisDynamicEntry
record componentimports
- the value for theimports
record componentdynamicImports
- the value for thedynamicImports
record componentassets
- the value for theassets
record componentcss
- the value for thecss
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)
. -
file
Returns the value of thefile
record component.- Returns:
- the value of the
file
record component
-
src
Returns the value of thesrc
record component.- Returns:
- the value of the
src
record component
-
name
Returns the value of thename
record component.- Returns:
- the value of the
name
record component
-
isEntry
Returns the value of theisEntry
record component.- Returns:
- the value of the
isEntry
record component
-
isDynamicEntry
Returns the value of theisDynamicEntry
record component.- Returns:
- the value of the
isDynamicEntry
record component
-
imports
Returns the value of theimports
record component.- Returns:
- the value of the
imports
record component
-
dynamicImports
Returns the value of thedynamicImports
record component.- Returns:
- the value of the
dynamicImports
record component
-
assets
Returns the value of theassets
record component.- Returns:
- the value of the
assets
record component
-
css
Returns the value of thecss
record component.- Returns:
- the value of the
css
record component
-