Record Class Range
java.lang.Object
java.lang.Record
cool.scx.http.headers.range.Range
- Record Components:
start- 可以为空end- 可以为空
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionend()Returns the value of theendrecord component.final booleanIndicates whether some other object is "equal to" this one.longgetEnd(long fileLength) longgetStart()final inthashCode()Returns a hash code value for this object.parseRange(String rangeHeader) start()Returns the value of thestartrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Range
-
-
Method Details
-
parseRange
-
getStart
public long getStart() -
getEnd
public long getEnd(long fileLength) -
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 withObjects::equals(Object,Object). -
start
-
end
-