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 aDefaultResourcerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.getName()Get the name of this resource.getUri()Get the URI of this resource.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.toString()Returns a string representation of this record class.uri()Returns the value of theurirecord component.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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 thenamerecord component.- Returns:
- the value of the
namerecord component
-
uri
Returns the value of theurirecord component.- Returns:
- the value of the
urirecord component
-