Record Class RangeUtils.RangeRequest.Unsatisfiable
java.lang.Object
java.lang.Record
io.leandev.appfuse.file.RangeUtils.RangeRequest.Unsatisfiable
- Record Components:
size- 檔案大小(Content-Range: bytes */{size})
- All Implemented Interfaces:
RangeUtils.RangeRequest
- Enclosing interface:
RangeUtils.RangeRequest
public static record RangeUtils.RangeRequest.Unsatisfiable(long size)
extends Record
implements RangeUtils.RangeRequest
語法合法但落在檔案範圍外:回 416
-
Nested Class Summary
Nested classes/interfaces inherited from interface RangeUtils.RangeRequest
RangeUtils.RangeRequest.Absent, RangeUtils.RangeRequest.Satisfiable, RangeUtils.RangeRequest.Unsatisfiable -
Constructor Summary
ConstructorsConstructorDescriptionUnsatisfiable(long size) Creates an instance of aUnsatisfiablerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longsize()Returns the value of thesizerecord component.產生 416 回應的 Content-Range header 值final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Unsatisfiable
public Unsatisfiable(long size) Creates an instance of aUnsatisfiablerecord class.- Parameters:
size- the value for thesizerecord component
-
-
Method Details
-
toContentRange
-
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. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
size
-