Package com.puppycrawl.tools.checkstyle
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
private static record PropertyCacheFile.ExternalResource(String location, String contentHashSum)
extends Record
Class which represents external resource.
-
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
The field for thelocationrecord component. -
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
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
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). -
location
Returns the value of thelocationrecord component.- Returns:
- the value of the
locationrecord component
-
contentHashSum
Returns the value of thecontentHashSumrecord component.- Returns:
- the value of the
contentHashSumrecord component
-