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 String
The field for thecontentHashSum
record component.private final String
The field for thelocation
record component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
ExternalResource
(String location, String contentHashSum) Creates an instance of aExternalResource
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecontentHashSum
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.location()
Returns the value of thelocation
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
location
The field for thelocation
record component. -
contentHashSum
The field for thecontentHashSum
record component.
-
-
Constructor Details
-
ExternalResource
Creates an instance of aExternalResource
record class.- Parameters:
location
- the value for thelocation
record componentcontentHashSum
- the value for thecontentHashSum
record 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 thelocation
record component.- Returns:
- the value of the
location
record component
-
contentHashSum
Returns the value of thecontentHashSum
record component.- Returns:
- the value of the
contentHashSum
record component
-