Record Class SourceInfo.Submodule
java.lang.Object
java.lang.Record
org.opendaylight.yangtools.yang.model.spi.source.SourceInfo.Submodule
- All Implemented Interfaces:
SourceInfo
- Enclosing interface:
- SourceInfo
public static record SourceInfo.Submodule(SourceIdentifier sourceId, YangVersion yangVersion, SourceDependency.BelongsTo belongsTo, ImmutableSet<Revision> revisions, ImmutableSet<SourceDependency.Import> imports, ImmutableSet<SourceDependency.Include> includes)
extends Record
implements SourceInfo
A
SourceInfo
about a submodule
.-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.opendaylight.yangtools.yang.model.spi.source.SourceInfo
SourceInfo.Module, SourceInfo.Submodule
-
Constructor Summary
ConstructorsConstructorDescriptionSubmodule
(SourceIdentifier sourceId, YangVersion yangVersion, SourceDependency.BelongsTo belongsTo, ImmutableSet<Revision> revisions, ImmutableSet<SourceDependency.Import> imports, ImmutableSet<SourceDependency.Include> includes) Creates an instance of aSubmodule
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebelongsTo
record component.static SourceInfo.Submodule.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.imports()
Returns the value of theimports
record component.includes()
Returns the value of theincludes
record component.Returns the value of therevisions
record component.sourceId()
Returns the value of thesourceId
record component.final String
toString()
Returns a string representation of this record class.Returns the value of theyangVersion
record component.
-
Constructor Details
-
Submodule
public Submodule(SourceIdentifier sourceId, YangVersion yangVersion, SourceDependency.BelongsTo belongsTo, ImmutableSet<Revision> revisions, ImmutableSet<SourceDependency.Import> imports, ImmutableSet<SourceDependency.Include> includes) Creates an instance of aSubmodule
record class.- Parameters:
sourceId
- the value for thesourceId
record componentyangVersion
- the value for theyangVersion
record componentbelongsTo
- the value for thebelongsTo
record componentrevisions
- the value for therevisions
record componentimports
- the value for theimports
record componentincludes
- the value for theincludes
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. All components in this record class are compared withObjects::equals(Object,Object)
. -
sourceId
Returns the value of thesourceId
record component.- Specified by:
sourceId
in interfaceSourceInfo
- Returns:
- the value of the
sourceId
record component
-
yangVersion
Returns the value of theyangVersion
record component.- Specified by:
yangVersion
in interfaceSourceInfo
- Returns:
- the value of the
yangVersion
record component
-
belongsTo
Returns the value of thebelongsTo
record component.- Returns:
- the value of the
belongsTo
record component
-
revisions
Returns the value of therevisions
record component.- Specified by:
revisions
in interfaceSourceInfo
- Returns:
- the value of the
revisions
record component
-
imports
Returns the value of theimports
record component.- Specified by:
imports
in interfaceSourceInfo
- Returns:
- the value of the
imports
record component
-
includes
Returns the value of theincludes
record component.- Specified by:
includes
in interfaceSourceInfo
- Returns:
- the value of the
includes
record component
-