Record Class OfflineRegionDefinition.GeometryRegion

java.lang.Object
java.lang.Record
org.maplibre.nativejni.offline.OfflineRegionDefinition.GeometryRegion
All Implemented Interfaces:
OfflineRegionDefinition
Enclosing interface:
OfflineRegionDefinition

public static record OfflineRegionDefinition.GeometryRegion(String styleUrl, Geometry geometry, double minZoom, double maxZoom, float pixelRatio, boolean includeIdeographs) extends Record implements OfflineRegionDefinition
  • Constructor Details

    • GeometryRegion

      public GeometryRegion(String styleUrl, Geometry geometry, double minZoom, double maxZoom, float pixelRatio, boolean includeIdeographs)
      Creates an instance of a GeometryRegion record class.
      Parameters:
      styleUrl - the value for the styleUrl record component
      geometry - the value for the geometry record component
      minZoom - the value for the minZoom record component
      maxZoom - the value for the maxZoom record component
      pixelRatio - the value for the pixelRatio record component
      includeIdeographs - the value for the includeIdeographs record component
  • Method Details

    • toString

      public final 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
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • styleUrl

      public String styleUrl()
      Returns the value of the styleUrl record component.
      Returns:
      the value of the styleUrl record component
    • geometry

      public Geometry geometry()
      Returns the value of the geometry record component.
      Returns:
      the value of the geometry record component
    • minZoom

      public double minZoom()
      Returns the value of the minZoom record component.
      Returns:
      the value of the minZoom record component
    • maxZoom

      public double maxZoom()
      Returns the value of the maxZoom record component.
      Returns:
      the value of the maxZoom record component
    • pixelRatio

      public float pixelRatio()
      Returns the value of the pixelRatio record component.
      Returns:
      the value of the pixelRatio record component
    • includeIdeographs

      public boolean includeIdeographs()
      Returns the value of the includeIdeographs record component.
      Returns:
      the value of the includeIdeographs record component