java.lang.Object
java.lang.Record
io.helidon.codegen.ModuleInfoRequires
- Record Components:
module
- module that is requiredisTransitive
- whether the requires is defined astransitive
isStatic
- whether the requires is defined asstatic
public record ModuleInfoRequires(String module, boolean isTransitive, boolean isStatic)
extends Record
A requires definition of a module-info.java.
-
Constructor Summary
ConstructorDescriptionModuleInfoRequires
(String module, boolean isTransitive, boolean isStatic) Creates an instance of aModuleInfoRequires
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.boolean
isStatic()
Returns the value of theisStatic
record component.boolean
Returns the value of theisTransitive
record component.module()
Returns the value of themodule
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
ModuleInfoRequires
Creates an instance of aModuleInfoRequires
record class.- Parameters:
module
- the value for themodule
record componentisTransitive
- the value for theisTransitive
record componentisStatic
- the value for theisStatic
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
module
Returns the value of themodule
record component.- Returns:
- the value of the
module
record component
-
isTransitive
public boolean isTransitive()Returns the value of theisTransitive
record component.- Returns:
- the value of the
isTransitive
record component
-
isStatic
public boolean isStatic()Returns the value of theisStatic
record component.- Returns:
- the value of the
isStatic
record component
-