Package org.geotools.imageio.netcdf
Record Class NetCDFImageIndexResolver.Slice2DIndex
- Enclosing class:
- NetCDFImageIndexResolver
public static record NetCDFImageIndexResolver.Slice2DIndex(String variableName, int[] indexes)
extends Record
Represents the result of resolving a variable selection into index positions.
This encapsulates the target variable name and the corresponding index for each dimension, forming a fully specified coordinate within the variable, identifying a 2D(xy) slice of the multidimensional hypercube.
-
Constructor Summary
ConstructorsConstructorDescriptionSlice2DIndex(String variableName, int[] indexes) Creates an instance of aSlice2DIndexrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.intintgetNIndex(int n) final inthashCode()Returns a hash code value for this object.int[]indexes()Returns the value of theindexesrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thevariableNamerecord component.
-
Constructor Details
-
Slice2DIndex
Creates an instance of aSlice2DIndexrecord class.- Parameters:
variableName- the value for thevariableNamerecord componentindexes- the value for theindexesrecord component
-
-
Method Details
-
getNIndex
public int getNIndex(int n) -
getNCount
public int getNCount() -
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. -
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. -
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. All components in this record class are compared withObjects::equals(Object,Object). -
variableName
Returns the value of thevariableNamerecord component.- Returns:
- the value of the
variableNamerecord component
-
indexes
public int[] indexes()Returns the value of theindexesrecord component.- Returns:
- the value of the
indexesrecord component
-