Class AngleUnits


  • public class AngleUnits
    extends java.lang.Object
    Defines a unit of angle measurement.
    Since:
    5 Nov 2007
    Author:
    Mark Taylor
    • Constructor Summary

      Constructors 
      Constructor Description
      AngleUnits​(java.lang.String name, double circle)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object other)  
      double getCircle()
      Returns the number of these units in an entire revolution.
      java.lang.String getName()
      Returns the name of this unit.
      int hashCode()  
      • Methods inherited from class java.lang.Object

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

      • DEGREES

        public static final AngleUnits DEGREES
        Degrees.
      • RADIANS

        public static final AngleUnits RADIANS
        Radians.
    • Constructor Detail

      • AngleUnits

        public AngleUnits​(java.lang.String name,
                          double circle)
        Constructor.
        Parameters:
        name - unit name
        circle - number of units in an entire revolution
    • Method Detail

      • getCircle

        public double getCircle()
        Returns the number of these units in an entire revolution.
        Returns:
        quantity in a circle
      • getName

        public java.lang.String getName()
        Returns the name of this unit.
        Returns:
        name
      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object