Package org.sonar.plugins.python.api
Record Class DjangoViewInfo
java.lang.Object
java.lang.Record
org.sonar.plugins.python.api.DjangoViewInfo
Holds metadata about a Django view function discovered during project analysis.
-
Constructor Summary
ConstructorsConstructorDescriptionDjangoViewInfo(Set<String> urlPatterns) Creates an instance of aDjangoViewInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionaddPattern(String urlPattern) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.Returns the value of theurlPatternsrecord component.static DjangoViewInfostatic DjangoViewInfowithPattern(String urlPattern)
-
Constructor Details
-
DjangoViewInfo
Creates an instance of aDjangoViewInforecord class.- Parameters:
urlPatterns- the value for theurlPatternsrecord component
-
-
Method Details
-
withoutPatterns
-
withPattern
-
addPattern
-
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). -
urlPatterns
Returns the value of theurlPatternsrecord component.- Returns:
- the value of the
urlPatternsrecord component
-