Package ucar.nc2.dataset
Class CoordinateTransform
java.lang.Object
ucar.nc2.dataset.CoordinateTransform
- All Implemented Interfaces:
Comparable<CoordinateTransform>
- Direct Known Subclasses:
ProjectionCT,VerticalCT
@ThreadSafe
public class CoordinateTransform
extends Object
implements Comparable<CoordinateTransform>
A CoordinateTransform is an abstraction of a function from a CoordinateSystem to a
"reference" CoordinateSystem.
CoordinateTransform is the superclass for ProjectionCT and VerticalCT.
It contains the Attributes/Parameters needed to make a "Coordinate Transform Variable" which
is just a container for the Transform parameters.
LOOK this should be abstract.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Method Summary
Modifier and TypeMethodDescriptionstatic CoordinateTransform.Builder<?>builder()Get Builder for this class that allows subclassing.intbooleanInstances which have same name, authority and parameters are equal.ucar.unidata.util.ParameterConvenience function; look up Parameter by name, ignoring case.getName()com.google.common.collect.ImmutableList<ucar.unidata.util.Parameter>inthashCode()Override Object.hashCode() to be consistent with equals.toString()
-
Method Details
-
getName
-
getAttributeContainer
-
getAuthority
-
getTransformType
-
getParameters
public com.google.common.collect.ImmutableList<ucar.unidata.util.Parameter> getParameters() -
findParameterIgnoreCase
Convenience function; look up Parameter by name, ignoring case.- Parameters:
name- the name of the attribute- Returns:
- the Attribute, or null if not found
-
equals
Instances which have same name, authority and parameters are equal. -
hashCode
public int hashCode()Override Object.hashCode() to be consistent with equals. -
toString
-
compareTo
- Specified by:
compareToin interfaceComparable<CoordinateTransform>
-
toBuilder
-
builder
Get Builder for this class that allows subclassing.- See Also:
-
- "https://community.oracle.com/blogs/emcmanus/2010/10/24/using-builder-pattern-subclasses"
-