Record Class OfflineRegionInfo
java.lang.Object
java.lang.Record
org.maplibre.nativeffi.offline.OfflineRegionInfo
public record OfflineRegionInfo(long id, OfflineRegionDefinition definition, byte[] metadata)
extends Record
Offline region snapshot copied from native snapshot or list handles.
-
Constructor Summary
ConstructorsConstructorDescriptionOfflineRegionInfo(long id, OfflineRegionDefinition definition, byte[] metadata) Creates an instance of aOfflineRegionInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedefinitionrecord component.booleanIndicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for this object.longid()Returns the value of theidrecord component.byte[]metadata()Returns the value of themetadatarecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
OfflineRegionInfo
Creates an instance of aOfflineRegionInforecord class.- Parameters:
id- the value for theidrecord componentdefinition- the value for thedefinitionrecord componentmetadata- the value for themetadatarecord component
-
-
Method Details
-
metadata
public byte[] metadata()Returns the value of themetadatarecord component.- Returns:
- the value of the
metadatarecord component
-
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. -
hashCode
-
toString
-
id
public long id()Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
definition
Returns the value of thedefinitionrecord component.- Returns:
- the value of the
definitionrecord component
-