Record Class IAppDirectory.GeneratedFile
java.lang.Object
java.lang.Record
com.iizix.jetty.IAppDirectory.GeneratedFile
- Record Components:
mediaType- The value of theContent-Typeheader.data- The bytes.maxAge- Themax-agein seconds, or 0 forno-cache.
- Enclosing interface:
IAppDirectory
Constructor Summary
ConstructorsConstructorDescriptionGeneratedFile(String mediaType, byte[] data, int maxAge) Creates an instance of aGeneratedFilerecord class.Method Summary
Modifier and TypeMethodDescriptionbyte[]data()Returns the value of thedatarecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intmaxAge()Returns the value of themaxAgerecord component.Returns the value of themediaTyperecord component.final StringtoString()Returns a string representation of this record class.
Constructor Details
GeneratedFile
Method Details
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.mediaType
data
maxAge