Class SimpleGetObject

java.lang.Object
org.bremersee.comparator.testmodel.SimpleGetObject

public class SimpleGetObject extends Object
The simple test object with getter.
Author:
Christian Bremer
  • Constructor Details

    • SimpleGetObject

      public SimpleGetObject(int number)
      Instantiates a new simple object with getter.
      Parameters:
      number - the number
    • SimpleGetObject

      public SimpleGetObject(int no, int anotherNumber)
      Instantiates a new Simple get object.
      Parameters:
      no - the no
      anotherNumber - the another number
  • Method Details

    • getAnotherNumber

      public int getAnotherNumber()
      Gets another number.
      Returns:
      the another number
    • setAnotherNumber

      public void setAnotherNumber(int anotherNumber)
      Sets another number.
      Parameters:
      anotherNumber - the another number
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object