Record Class BuildSpecification
java.lang.Object
java.lang.Record
org.opendaylight.yangtools.yang.parser.spi.source.BuildSpecification
- Record Components:
symbolicName- symbolic name of this specificationmodules- the set of modules to buildfeatureSet- theFeatureSetto apply
@NonNullByDefault
public record BuildSpecification(String symbolicName, com.google.common.collect.ImmutableMap<QNameModule,BuildSpecification.SourceSpec.Module> modules, @Nullable org.opendaylight.yangtools.yang.model.api.stmt.FeatureSet featureSet)
extends Record
Specification of a single parsing attempt.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceSpecification of how a source should be processed. -
Constructor Summary
ConstructorsConstructorDescriptionBuildSpecification(String symbolicName, com.google.common.collect.ImmutableMap<QNameModule, BuildSpecification.SourceSpec.Module> modules, @Nullable org.opendaylight.yangtools.yang.model.api.stmt.FeatureSet featureSet) Creates an instance of aBuildSpecificationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.@Nullable org.opendaylight.yangtools.yang.model.api.stmt.FeatureSetReturns the value of thefeatureSetrecord component.final inthashCode()Returns a hash code value for this object.com.google.common.collect.ImmutableMap<QNameModule,BuildSpecification.SourceSpec.Module> modules()Returns the value of themodulesrecord component.Returns the value of thesymbolicNamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BuildSpecification
public BuildSpecification(String symbolicName, com.google.common.collect.ImmutableMap<QNameModule, BuildSpecification.SourceSpec.Module> modules, @Nullable org.opendaylight.yangtools.yang.model.api.stmt.FeatureSet featureSet) Creates an instance of aBuildSpecificationrecord class.- Parameters:
symbolicName- the value for thesymbolicNamerecord componentmodules- the value for themodulesrecord componentfeatureSet- the value for thefeatureSetrecord 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). -
symbolicName
Returns the value of thesymbolicNamerecord component.- Returns:
- the value of the
symbolicNamerecord component
-
modules
public com.google.common.collect.ImmutableMap<QNameModule,BuildSpecification.SourceSpec.Module> modules()Returns the value of themodulesrecord component.- Returns:
- the value of the
modulesrecord component
-
featureSet
public @Nullable org.opendaylight.yangtools.yang.model.api.stmt.FeatureSet featureSet()Returns the value of thefeatureSetrecord component.- Returns:
- the value of the
featureSetrecord component
-