Package com.reign.api.tenor.responses
Record Class MediaContainer
java.lang.Object
java.lang.Record
com.reign.api.tenor.responses.MediaContainer
- 
Constructor SummaryConstructorsConstructorDescriptionMediaContainer(GifMedia mp4, GifMedia tinyGif, GifMedia mediumGif, GifMedia gif) Creates an instance of aMediaContainerrecord class.
- 
Method SummaryModifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.gif()Returns the value of thegifrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of themediumGifrecord component.mp4()Returns the value of themp4record component.tinyGif()Returns the value of thetinyGifrecord component.final StringtoString()Returns a string representation of this record class.
- 
Constructor Details- 
MediaContainerCreates an instance of aMediaContainerrecord class.- Parameters:
- mp4- the value for the- mp4record component
- tinyGif- the value for the- tinyGifrecord component
- mediumGif- the value for the- mediumGifrecord component
- gif- the value for the- gifrecord component
 
 
- 
- 
Method Details- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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).
- 
mp4Returns the value of themp4record component.- Returns:
- the value of the mp4record component
 
- 
tinyGifReturns the value of thetinyGifrecord component.- Returns:
- the value of the tinyGifrecord component
 
- 
mediumGifReturns the value of themediumGifrecord component.- Returns:
- the value of the mediumGifrecord component
 
- 
gifReturns the value of thegifrecord component.- Returns:
- the value of the gifrecord component
 
 
-