Record Class PWAScreenshots.Shot
java.lang.Object
java.lang.Record
com.iizix.pwa.PWAScreenshots.Shot
- Record Components:
name- The file name in the screenshots directory, e.g.home-phone.png.data- The file's bytes.width- The width in pixels.height- The height in pixels.mediaType-image/pngorimage/jpeg.formFactor-PWAScreenshots.NARROWorPWAScreenshots.WIDE.
- Enclosing class:
PWAScreenshots
Constructor Summary
ConstructorsMethod Summary
Modifier and TypeMethodDescriptionbyte[]data()Returns the value of thedatarecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theformFactorrecord component.final inthashCode()Returns a hash code value for this object.intheight()Returns the value of theheightrecord component.Returns the value of themediaTyperecord component.name()Returns the value of thenamerecord component.Gets the served name under the application directory.sizes()Gets the manifest'ssizesvalue.final StringtoString()Returns a string representation of this record class.intwidth()Returns the value of thewidthrecord component.
Constructor Details
Shot
Creates an instance of aShotrecord class.- Parameters:
name- the value for thenamerecord componentdata- the value for thedatarecord componentwidth- the value for thewidthrecord componentheight- the value for theheightrecord componentmediaType- the value for themediaTyperecord componentformFactor- the value for theformFactorrecord component
Method Details
servedName
Gets the served name under the application directory.- Returns:
screenshots/<name>.
sizes
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes.name
data
width
height
mediaType
formFactor
Returns the value of theformFactorrecord component.- Returns:
- the value of the
formFactorrecord component