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

public final class SignReversalComment extends AbstractInternationalString implements Serializable
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 Details

    • serialVersionUID

      private static final long serialVersionUID
      For cross-version compatibility.
      See Also:
    • SAME

      public static final SignReversalComment SAME
      Remark telling that an inverse operation uses the same sign for the parameter value.
    • OPPOSITE

      public static final SignReversalComment OPPOSITE
      Remark telling that an inverse operation uses the parameter value with opposite sign.
    • opposite

      private final boolean opposite
      Whether the inverse operation use a parameter value of opposite sign or same sign.
  • Constructor Details

    • SignReversalComment

      private SignReversalComment(boolean r)
      Constructor for the SAME and OPPOSITE constants only.
  • Method Details

    • toString

      public String toString(Locale locale)
      Returns a human-readable text for this constant.
      Specified by:
      toString in interface org.opengis.util.InternationalString
      Specified by:
      toString in class AbstractInternationalString
      Parameters:
      locale - the desired locale, or null.
      Returns:
      a human-readable text in the given locale if possible.
      See Also:
    • readResolve

      private Object readResolve() throws ObjectStreamException
      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.