Package com.reign.api.tenor.responses
Record Class MediaContainer
java.lang.Object
java.lang.Record
com.reign.api.tenor.responses.MediaContainer
-
Constructor Summary
ConstructorsConstructorDescriptionMediaContainer
(GifMedia mp4, GifMedia tinyGif, GifMedia mediumGif, GifMedia gif) Creates an instance of aMediaContainer
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.gif()
Returns the value of thegif
record component.final int
hashCode()
Returns a hash code value for this object.Returns the value of themediumGif
record component.mp4()
Returns the value of themp4
record component.tinyGif()
Returns the value of thetinyGif
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
MediaContainer
Creates an instance of aMediaContainer
record class.- Parameters:
mp4
- the value for themp4
record componenttinyGif
- the value for thetinyGif
record componentmediumGif
- the value for themediumGif
record componentgif
- the value for thegif
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
public final int 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)
. -
mp4
Returns the value of themp4
record component.- Returns:
- the value of the
mp4
record component
-
tinyGif
Returns the value of thetinyGif
record component.- Returns:
- the value of the
tinyGif
record component
-
mediumGif
Returns the value of themediumGif
record component.- Returns:
- the value of the
mediumGif
record component
-
gif
Returns the value of thegif
record component.- Returns:
- the value of the
gif
record component
-