java.lang.Object
java.lang.Record
io.helidon.codegen.ModuleInfoRequires
- Record Components:
module- module that is requiredisTransitive- whether the requires is defined astransitiveisStatic- 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
ConstructorsConstructorDescriptionModuleInfoRequires(String module, boolean isTransitive, boolean isStatic) Creates an instance of aModuleInfoRequiresrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanisStatic()Returns the value of theisStaticrecord component.booleanReturns the value of theisTransitiverecord component.module()Returns the value of themodulerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ModuleInfoRequires
Creates an instance of aModuleInfoRequiresrecord class.- Parameters:
module- the value for themodulerecord componentisTransitive- the value for theisTransitiverecord componentisStatic- the value for theisStaticrecord 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 themodulerecord component.- Returns:
- the value of the
modulerecord component
-
isTransitive
public boolean isTransitive()Returns the value of theisTransitiverecord component.- Returns:
- the value of the
isTransitiverecord component
-
isStatic
public boolean isStatic()Returns the value of theisStaticrecord component.- Returns:
- the value of the
isStaticrecord component
-