Documentation of 'org.jfree.data.ComparableObjectItem' Java class
ComparableObjectItem
org.jfree.data

Class ComparableObjectItem

    • Constructor Summary

      Constructors 
      Constructor and Description
      ComparableObjectItem(java.lang.Comparable x, java.lang.Object y)
      Constructs a new data item.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.lang.Object clone()
      Returns a clone of this object.
      int compareTo(java.lang.Object o1)
      Returns an integer indicating the order of this object relative to another object.
      boolean equals(java.lang.Object obj)
      Tests if this object is equal to another.
      int hashCode()
      Returns a hash code.
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ComparableObjectItem

        public ComparableObjectItem(java.lang.Comparable x,
                                    java.lang.Object y)
        Constructs a new data item.
        Parameters:
        x - the x-value (null NOT permitted).
        y - the y-value (null permitted).
    • Method Detail

      • compareTo

        public int compareTo(java.lang.Object o1)
        Returns an integer indicating the order of this object relative to another object.

        For the order we consider only the x-value: negative == "less-than", zero == "equal", positive == "greater-than".

        Specified by:
        compareTo in interface java.lang.Comparable
        Parameters:
        o1 - the object being compared to.
        Returns:
        An integer indicating the order of this data pair object relative to another object.
      • clone

        public java.lang.Object clone()
                               throws java.lang.CloneNotSupportedException
        Returns a clone of this object.
        Overrides:
        clone in class java.lang.Object
        Returns:
        A clone.
        Throws:
        java.lang.CloneNotSupportedException - not thrown by this class, but subclasses may differ.
      • equals

        public boolean equals(java.lang.Object obj)
        Tests if this object is equal to another.
        Overrides:
        equals in class java.lang.Object
        Parameters:
        obj - the object to test against for equality (null permitted).
        Returns:
        A boolean.
      • hashCode

        public int hashCode()
        Returns a hash code.
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        A hash code.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.