Class WindDataItem

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable

    class WindDataItem
    extends java.lang.Object
    implements java.lang.Comparable, java.io.Serializable
    A wind data item.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.Number windDir
      The wind direction.
      private java.lang.Number windForce
      The wind force.
      private java.lang.Number x
      The x-value.
    • Constructor Summary

      Constructors 
      Constructor Description
      WindDataItem​(java.lang.Number x, java.lang.Number windDir, java.lang.Number windForce)
      Creates a new wind data item.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int compareTo​(java.lang.Object object)
      Compares this item to another object.
      boolean equals​(java.lang.Object obj)
      Tests this WindDataItem for equality with an arbitrary object.
      java.lang.Number getWindDirection()
      Returns the wind direction.
      java.lang.Number getWindForce()
      Returns the wind force.
      java.lang.Number getX()
      Returns the x-value.
      • Methods inherited from class java.lang.Object

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

      • x

        private java.lang.Number x
        The x-value.
      • windDir

        private java.lang.Number windDir
        The wind direction.
      • windForce

        private java.lang.Number windForce
        The wind force.
    • Constructor Detail

      • WindDataItem

        public WindDataItem​(java.lang.Number x,
                            java.lang.Number windDir,
                            java.lang.Number windForce)
        Creates a new wind data item.
        Parameters:
        x - the x-value.
        windDir - the direction.
        windForce - the force.
    • Method Detail

      • getX

        public java.lang.Number getX()
        Returns the x-value.
        Returns:
        The x-value.
      • getWindDirection

        public java.lang.Number getWindDirection()
        Returns the wind direction.
        Returns:
        The wind direction.
      • getWindForce

        public java.lang.Number getWindForce()
        Returns the wind force.
        Returns:
        The wind force.
      • compareTo

        public int compareTo​(java.lang.Object object)
        Compares this item to another object.
        Specified by:
        compareTo in interface java.lang.Comparable
        Parameters:
        object - the other object.
        Returns:
        An int that indicates the relative comparison.
      • equals

        public boolean equals​(java.lang.Object obj)
        Tests this WindDataItem for equality with an arbitrary object.
        Overrides:
        equals in class java.lang.Object
        Parameters:
        obj - the object (null permitted).
        Returns:
        A boolean.