Class SignReversalComment
java.lang.Object
org.apache.sis.util.AbstractInternationalString
org.apache.sis.internal.referencing.SignReversalComment
- All Implemented Interfaces:
Serializable
,CharSequence
,Comparable<org.opengis.util.InternationalString>
,Formattable
,org.opengis.util.InternationalString
Comments telling whether a parameter value uses the same sign or the opposite sign for the inverse operation.
Those comments are used for encoding the
PARAM_SIGN_REVERSAL
boolean value in the
[Coordinate_Operation Parameter Usage]
table of the EPSG dataset.
This approach may change in any future SIS version.
- Since:
- 0.7
- Version:
- 0.7
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final boolean
Whether the inverse operation use a parameter value of opposite sign or same sign.static final SignReversalComment
Remark telling that an inverse operation uses the parameter value with opposite sign.static final SignReversalComment
Remark telling that an inverse operation uses the same sign for the parameter value.private static final long
For cross-version compatibility. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate Object
Invokes on deserialization for returning the canonical constant.Returns a human-readable text for this constant.Methods inherited from class org.apache.sis.util.AbstractInternationalString
charAt, compareTo, formatTo, length, subSequence, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.CharSequence
chars, codePoints, isEmpty
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDFor cross-version compatibility.- See Also:
-
SAME
Remark telling that an inverse operation uses the same sign for the parameter value. -
OPPOSITE
Remark telling that an inverse operation uses the parameter value with opposite sign. -
opposite
private final boolean oppositeWhether the inverse operation use a parameter value of opposite sign or same sign.
-
-
Constructor Details
-
SignReversalComment
private SignReversalComment(boolean r)
-
-
Method Details
-
toString
Returns a human-readable text for this constant.- Specified by:
toString
in interfaceorg.opengis.util.InternationalString
- Specified by:
toString
in classAbstractInternationalString
- Parameters:
locale
- the desired locale, ornull
.- Returns:
- a human-readable text in the given locale if possible.
- See Also:
-
readResolve
Invokes on deserialization for returning the canonical constant.- Returns:
- the object to use after deserialization.
- Throws:
ObjectStreamException
- if the serialized object defines an unknown data type.
-