Class SimpleGetObject
java.lang.Object
org.bremersee.comparator.testmodel.SimpleGetObject
The simple test object with getter.
- Author:
- Christian Bremer
-
Constructor Summary
ConstructorsConstructorDescriptionSimpleGetObject(int number) Instantiates a new simple object with getter.SimpleGetObject(int no, int anotherNumber) Instantiates a new Simple get object. -
Method Summary
Modifier and TypeMethodDescriptionbooleanintGets another number.inthashCode()voidsetAnotherNumber(int anotherNumber) Sets another number.
-
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 noanotherNumber- 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
-
hashCode
public int hashCode()
-