Record Class PackageDescription
java.lang.Object
java.lang.Record
io.github.kaktushose.jdac.definitions.description.PackageDescription
- Record Components:
name- the packages nameannotations- the packagespackage-info.javafiles annotations
- All Implemented Interfaces:
Description
public record PackageDescription(String name, Collection<AnnotationDescription<?>> annotations)
extends Record
implements Description
A
Description that describes a Package.-
Constructor Summary
ConstructorsConstructorDescriptionPackageDescription(String name, Collection<AnnotationDescription<?>> annotations) Creates an instance of aPackageDescriptionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theannotationsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from interface Description
annotation
-
Constructor Details
-
PackageDescription
Creates an instance of aPackageDescriptionrecord class.- Parameters:
name- the value for thenamerecord componentannotations- the value for theannotationsrecord component
-
-
Method Details
-
toString
-
hashCode
-
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). -
name
-
annotations
Returns the value of theannotationsrecord component.- Specified by:
annotationsin interfaceDescription- Returns:
- the value of the
annotationsrecord component
-