Record Class DefaultResource
java.lang.Object
java.lang.Record
org.junit.platform.commons.support.DefaultResource
- All Implemented Interfaces:
Resource
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultResource
(String name, URI uri) Creates an instance of aDefaultResource
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.getName()
Get the name of this resource.getUri()
Get the URI of this resource.final int
hashCode()
Returns a hash code value for this object.name()
Returns the value of thename
record component.toString()
Returns a string representation of this record class.uri()
Returns the value of theuri
record component.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.junit.platform.commons.support.Resource
getInputStream
-
Constructor Details
-
DefaultResource
-
-
Method Details
-
getName
-
getUri
-
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
Returns the value of thename
record component.- Returns:
- the value of the
name
record component
-
uri
Returns the value of theuri
record component.- Returns:
- the value of the
uri
record component
-