Resource.
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private static <T> void | |
| public boolean | equals(Object obj)
Implements abstract java. Indicates whether some other object is "equal to" this one. |
| public String | |
| public URI | |
| public int | |
| public String | |
| public final String | toString()
Implements abstract java. Returns a string representation of the record. |
| public URI |
| name | back to summary |
|---|---|
| private final String name Record Component accessed by name(). | |
| uri | back to summary |
|---|---|
| private final URI uri Record Component accessed by uri(). | |
| DefaultResource | back to summary |
|---|---|
| pack-priv DefaultResource(String name, URI uri) | |
| checkNotNull | back to summary |
|---|---|
private static <T> void checkNotNull(@Nullable T input, String title)
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Implements abstract java. Doc from java. Indicates whether some other object is "equal to" this one. In addition
to the general contract of
R copy = new R(r.c1(), r.c2(), ..., r.cn());
then it must be the case that r.equals(copy).
| |
| getName | back to summary |
|---|---|
| public String getName() Implements org. Doc from org. Get the name of this resource. The resource name is a
| |
| getUri | back to summary |
|---|---|
| public URI getUri() Implements org. Doc from org. Get the URI of this resource.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Implements abstract java. Doc from java. Returns a hash code value for the record.
Obeys the general contract of
| |
| name | back to summary |
|---|---|
| public String name() Record Component getter of name. | |
| toString | back to summary |
|---|---|
| public final String toString() Implements abstract java. Doc from java. Returns a string representation of the record.
In accordance with the general contract of In addition to this general contract, record classes must further participate in the invariant that any two records which are equal must produce equal strings. This invariant is necessarily relaxed in the rare case where corresponding equal component values might fail to produce equal strings for themselves. | |
| uri | back to summary |
|---|---|
| public URI uri() Record Component getter of uri. | |