Record Class PropertyCacheFile.ExternalResource
java.lang.Object
java.lang.Record
com.puppycrawl.tools.checkstyle.PropertyCacheFile.ExternalResource
- Record Components:
location- resource location.contentHashSum- content hash sum.
- Enclosing class:
PropertyCacheFile
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final StringThe field for thecontentHashSumrecord component.private final StringThe field for thelocationrecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateExternalResource(String location, String contentHashSum) Creates an instance of aExternalResourcerecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecontentHashSumrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.location()Returns the value of thelocationrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
location
-
contentHashSum
The field for thecontentHashSumrecord component.
-
-
Constructor Details
-
ExternalResource
Creates an instance of aExternalResourcerecord class.- Parameters:
location- the value for thelocationrecord componentcontentHashSum- the value for thecontentHashSumrecord 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). -
location
-
contentHashSum
Returns the value of thecontentHashSumrecord component.- Returns:
- the value of the
contentHashSumrecord component
-