Record Class GdalDriver

java.lang.Object
java.lang.Record
com.eco.bio7.gdal.GdalDriver
Record Components:
shortName - the name for the options (e.g., GTiff)
longName - the description (e.g., GeoTIFF)
raster - true if it reads or writes rasters
vector - true if it reads or writes vectors
create - true if it can create files (GDALCreate)
extensions - the file extensions (e.g., "tif tiff"), may be empty

public record GdalDriver(String shortName, String longName, boolean raster, boolean vector, boolean create, String extensions) extends Record
A driver (format) of GDAL.
  • Constructor Details

    • GdalDriver

      public GdalDriver(String shortName, String longName, boolean raster, boolean vector, boolean create, String extensions)
      Creates an instance of a GdalDriver record class.
      Parameters:
      shortName - the value for the shortName record component
      longName - the value for the longName record component
      raster - the value for the raster record component
      vector - the value for the vector record component
      create - the value for the create record component
      extensions - the value for the extensions 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.
    • shortName

      public String shortName()
      Returns the value of the shortName record component.
      Returns:
      the value of the shortName record component
    • longName

      public String longName()
      Returns the value of the longName record component.
      Returns:
      the value of the longName record component
    • raster

      public boolean raster()
      Returns the value of the raster record component.
      Returns:
      the value of the raster record component
    • vector

      public boolean vector()
      Returns the value of the vector record component.
      Returns:
      the value of the vector record component
    • create

      public boolean create()
      Returns the value of the create record component.
      Returns:
      the value of the create record component
    • extensions

      public String extensions()
      Returns the value of the extensions record component.
      Returns:
      the value of the extensions record component