Record Class SerializationOptions
java.lang.Object
java.lang.Record
com.google.javascript.jscomp.serialization.SerializationOptions
public record SerializationOptions(boolean includeDebugInfo, boolean runValidation, com.google.common.collect.ImmutableList<String> runtimeLibraries)
extends Record
Configuration options for serialization time.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionSerializationOptions
(boolean includeDebugInfo, boolean runValidation, com.google.common.collect.ImmutableList<String> runtimeLibraries) Creates an instance of aSerializationOptions
record class. -
Method Summary
Modifier and TypeMethodDescriptionstatic SerializationOptions.Builder
builder()
final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.boolean
Returns the value of theincludeDebugInfo
record component.com.google.common.collect.ImmutableList
<String> Returns the value of theruntimeLibraries
record component.boolean
Returns the value of therunValidation
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
SerializationOptions
public SerializationOptions(boolean includeDebugInfo, boolean runValidation, com.google.common.collect.ImmutableList<String> runtimeLibraries) Creates an instance of aSerializationOptions
record class.- Parameters:
includeDebugInfo
- the value for theincludeDebugInfo
record componentrunValidation
- the value for therunValidation
record componentruntimeLibraries
- the value for theruntimeLibraries
record component
-
-
Method Details
-
builder
-
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 '=='. -
includeDebugInfo
public boolean includeDebugInfo()Returns the value of theincludeDebugInfo
record component.- Returns:
- the value of the
includeDebugInfo
record component
-
runValidation
public boolean runValidation()Returns the value of therunValidation
record component.- Returns:
- the value of the
runValidation
record component
-
runtimeLibraries
Returns the value of theruntimeLibraries
record component.- Returns:
- the value of the
runtimeLibraries
record component
-