Record Class OfflineRegionInfo

java.lang.Object
java.lang.Record
org.maplibre.nativejni.offline.OfflineRegionInfo

public record OfflineRegionInfo(long id, OfflineRegionDefinition definition, byte[] metadata) extends Record
Offline region snapshot copied from native snapshot or list handles.
  • Constructor Details

    • OfflineRegionInfo

      public OfflineRegionInfo(long id, OfflineRegionDefinition definition, byte[] metadata)
      Creates an instance of a OfflineRegionInfo record class.
      Parameters:
      id - the value for the id record component
      definition - the value for the definition record component
      metadata - the value for the metadata record component
  • Method Details

    • metadata

      public byte[] metadata()
      Returns the value of the metadata record component.
      Returns:
      the value of the metadata record component
    • equals

      public boolean equals(Object other)
      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 with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      other - the object with which to compare
      Returns:
      true if this object is the same as the other argument; false otherwise.
    • hashCode

      public int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • toString

      public String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • id

      public long id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • definition

      public OfflineRegionDefinition definition()
      Returns the value of the definition record component.
      Returns:
      the value of the definition record component