Package com.io7m.calino.parser.api
Record Class CLNParseRequest
java.lang.Object
java.lang.Record
com.io7m.calino.parser.api.CLNParseRequest
- Record Components:
decompressors
- The decompressor factorychannel
- The file channelsource
- The data sourcedescriptorLengthLimit
- The maximum descriptor lengthkeyValueDatumLimit
- The maximum value of a metadata key or value
public record CLNParseRequest(CLNDecompressorFactoryType decompressors, SeekableByteChannel channel, URI source, long descriptorLengthLimit, long keyValueDatumLimit)
extends Record
A parse request.
-
Constructor Summary
ConstructorDescriptionCLNParseRequest
(CLNDecompressorFactoryType decompressors, SeekableByteChannel channel, URI source, long descriptorLengthLimit, long keyValueDatumLimit) A parse request. -
Method Summary
Modifier and TypeMethodDescriptionstatic CLNParseRequestBuilderType
builder
(CLNDecompressorFactoryType inDecompressors, SeekableByteChannel inChannel, URI inSource) Create a new mutable request builder.channel()
Returns the value of thechannel
record component.Returns the value of thedecompressors
record component.long
Returns the value of thedescriptorLengthLimit
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.long
Returns the value of thekeyValueDatumLimit
record component.source()
Returns the value of thesource
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
CLNParseRequest
public CLNParseRequest(CLNDecompressorFactoryType decompressors, SeekableByteChannel channel, URI source, long descriptorLengthLimit, long keyValueDatumLimit) A parse request.- Parameters:
decompressors
- The decompressor factorychannel
- The file channelsource
- The data sourcedescriptorLengthLimit
- The maximum descriptor lengthkeyValueDatumLimit
- The maximum value of a metadata key or value
-
-
Method Details
-
builder
public static CLNParseRequestBuilderType builder(CLNDecompressorFactoryType inDecompressors, SeekableByteChannel inChannel, URI inSource) Create a new mutable request builder.- Parameters:
inDecompressors
- The decompressor factoryinChannel
- The file channelinSource
- The data source- Returns:
- A request builder
-
toString
Returns 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. -
hashCode
public 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. -
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 '=='. -
decompressors
Returns the value of thedecompressors
record component.- Returns:
- the value of the
decompressors
record component
-
channel
Returns the value of thechannel
record component.- Returns:
- the value of the
channel
record component
-
source
Returns the value of thesource
record component.- Returns:
- the value of the
source
record component
-
descriptorLengthLimit
public long descriptorLengthLimit()Returns the value of thedescriptorLengthLimit
record component.- Returns:
- the value of the
descriptorLengthLimit
record component
-
keyValueDatumLimit
public long keyValueDatumLimit()Returns the value of thekeyValueDatumLimit
record component.- Returns:
- the value of the
keyValueDatumLimit
record component
-