Class Hemisphere


  • public class Hemisphere
    extends java.lang.Object
    Represent a Hemisphere symbol and value.
    Author:
    ubaldino
    • Field Summary

      Fields 
      Modifier and Type Field Description
      int polarity
      Hemisphere polarity - N, E = +1; S, W = -1.
      java.lang.String symbol
      The symbol.
    • Constructor Summary

      Constructors 
      Constructor Description
      Hemisphere()  
    • Method Summary

      Modifier and Type Method Description
      boolean isAlpha()
      Checks if is alpha.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • symbol

        public java.lang.String symbol
        The symbol.
      • polarity

        public int polarity
        Hemisphere polarity - N, E = +1; S, W = -1. polarity default is 0, because any choice to use -1 or +1 as a default should be set by interpreter or application using this class. Polarity = 0 means you have a bug or lack of initialization logic.
    • Constructor Detail

      • Hemisphere

        public Hemisphere()
    • Method Detail

      • isAlpha

        public boolean isAlpha()
        Checks if is alpha.
        Returns:
        true, if is alphabetic