Record Class ResourceRequest
java.lang.Object
java.lang.Record
org.maplibre.nativeffi.resource.ResourceRequest
public record ResourceRequest(String url, ResourceKind kind, int rawKind, ResourceLoadingMethod loadingMethod, int rawLoadingMethod, ResourcePriority priority, int rawPriority, ResourceUsage usage, int rawUsage, ResourceStoragePolicy storagePolicy, int rawStoragePolicy, Optional<ResourceRequest.ByteRange> range, Optional<Long> priorModifiedUnixMs, Optional<Long> priorExpiresUnixMs, Optional<String> priorEtag, byte[] priorData)
extends Record
Copied network resource request passed to a runtime resource provider.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionResourceRequest(String url, ResourceKind kind, int rawKind, ResourceLoadingMethod loadingMethod, int rawLoadingMethod, ResourcePriority priority, int rawPriority, ResourceUsage usage, int rawUsage, ResourceStoragePolicy storagePolicy, int rawStoragePolicy, Optional<ResourceRequest.ByteRange> range, Optional<Long> priorModifiedUnixMs, Optional<Long> priorExpiresUnixMs, Optional<String> priorEtag, byte[] priorData) Creates an instance of aResourceRequestrecord 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.kind()Returns the value of thekindrecord component.Returns the value of theloadingMethodrecord component.byte[]Returns the value of thepriorDatarecord component.Returns the value of thepriorEtagrecord component.Returns the value of thepriorExpiresUnixMsrecord component.priority()Returns the value of thepriorityrecord component.Returns the value of thepriorModifiedUnixMsrecord component.range()Returns the value of therangerecord component.intrawKind()Returns the value of therawKindrecord component.intReturns the value of therawLoadingMethodrecord component.intReturns the value of therawPriorityrecord component.intReturns the value of therawStoragePolicyrecord component.intrawUsage()Returns the value of therawUsagerecord component.Returns the value of thestoragePolicyrecord component.final StringtoString()Returns a string representation of this record class.url()Returns the value of theurlrecord component.usage()Returns the value of theusagerecord component.
-
Constructor Details
-
ResourceRequest
public ResourceRequest(String url, ResourceKind kind, int rawKind, ResourceLoadingMethod loadingMethod, int rawLoadingMethod, ResourcePriority priority, int rawPriority, ResourceUsage usage, int rawUsage, ResourceStoragePolicy storagePolicy, int rawStoragePolicy, Optional<ResourceRequest.ByteRange> range, Optional<Long> priorModifiedUnixMs, Optional<Long> priorExpiresUnixMs, Optional<String> priorEtag, byte[] priorData) Creates an instance of aResourceRequestrecord class.- Parameters:
url- the value for theurlrecord componentkind- the value for thekindrecord componentrawKind- the value for therawKindrecord componentloadingMethod- the value for theloadingMethodrecord componentrawLoadingMethod- the value for therawLoadingMethodrecord componentpriority- the value for thepriorityrecord componentrawPriority- the value for therawPriorityrecord componentusage- the value for theusagerecord componentrawUsage- the value for therawUsagerecord componentstoragePolicy- the value for thestoragePolicyrecord componentrawStoragePolicy- the value for therawStoragePolicyrecord componentrange- the value for therangerecord componentpriorModifiedUnixMs- the value for thepriorModifiedUnixMsrecord componentpriorExpiresUnixMs- the value for thepriorExpiresUnixMsrecord componentpriorEtag- the value for thepriorEtagrecord componentpriorData- the value for thepriorDatarecord component
-
-
Method Details
-
priorData
public byte[] priorData()Returns the value of thepriorDatarecord component.- Returns:
- the value of the
priorDatarecord component
-
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. -
url
Returns the value of theurlrecord component.- Returns:
- the value of the
urlrecord component
-
kind
Returns the value of thekindrecord component.- Returns:
- the value of the
kindrecord component
-
rawKind
public int rawKind()Returns the value of therawKindrecord component.- Returns:
- the value of the
rawKindrecord component
-
loadingMethod
Returns the value of theloadingMethodrecord component.- Returns:
- the value of the
loadingMethodrecord component
-
rawLoadingMethod
public int rawLoadingMethod()Returns the value of therawLoadingMethodrecord component.- Returns:
- the value of the
rawLoadingMethodrecord component
-
priority
Returns the value of thepriorityrecord component.- Returns:
- the value of the
priorityrecord component
-
rawPriority
public int rawPriority()Returns the value of therawPriorityrecord component.- Returns:
- the value of the
rawPriorityrecord component
-
usage
Returns the value of theusagerecord component.- Returns:
- the value of the
usagerecord component
-
rawUsage
public int rawUsage()Returns the value of therawUsagerecord component.- Returns:
- the value of the
rawUsagerecord component
-
storagePolicy
Returns the value of thestoragePolicyrecord component.- Returns:
- the value of the
storagePolicyrecord component
-
rawStoragePolicy
public int rawStoragePolicy()Returns the value of therawStoragePolicyrecord component.- Returns:
- the value of the
rawStoragePolicyrecord component
-
range
Returns the value of therangerecord component.- Returns:
- the value of the
rangerecord component
-
priorModifiedUnixMs
-
priorExpiresUnixMs
-
priorEtag
-