Package io.github.qishr.cascara.common.content
Record ResourceContent
java.lang.Object
java.lang.Record
io.github.qishr.cascara.common.content.ResourceContent
public final record ResourceContent
extends Record
Any resource reachable by a URI, not just resource in the Java sense.
Constructor Summary
| Constructor | Description |
|---|---|
| ResourceContent(String content, ContentType contentType) |
Method Summary
| Modifier and Type | Method | Description |
|---|---|---|
| public final String | toString() | Returns a string representation of this record class. |
| public final int | hashCode() | Returns a hash code value for this object. |
| public final boolean | equals(Object o) | Indicates whether some other object is "equal to" this one. |
| public String | content() | Returns the value of the content record component. |
| public ContentType | contentType() | Returns the value of the contentType record component. |
Method Details
toString
public final String toString()
Returns a string representation of this record class.
hashCode
public final int hashCode()
Returns a hash code value for this object.
equals
public final boolean equals(Object o)
Indicates whether some other object is "equal to" this one.
content
public String content()
Returns the value of the content record component.
contentType
public ContentType contentType()
Returns the value of the contentType record component.