java.lang.Object
org.apache.wicket.util.value.IntValue
- All Implemented Interfaces:
Serializable
,Comparable<IntValue>
A base class based on the Java
int
primitive for value classes that want to
implement standard operations on that value without the pain of aggregating an
Integer
object.- Since:
- 1.2.6
- Author:
- Jonathan Locke
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal int
final boolean
Compares thisObject
to a givenObject
.final boolean
greaterThan
(int value) Compares thisIntValue
with a primitiveint
value.final boolean
greaterThan
(IntValue that) Compares thisIntValue
with anotherIntValue
.final int
hashCode()
Returns the hash code for thisObject
.final boolean
lessThan
(int that) Compares thisIntValue
with a primitiveint
value.final boolean
Compares thisIntValue
with anotherIntValue
.toString()
Converts thisLongValue
to aString
.
-
Field Details
-
value
theint
value
-
-
Constructor Details
-
IntValue
Constructor.- Parameters:
value
- theint
value
-
-
Method Details
-
compareTo
- Specified by:
compareTo
in interfaceComparable<IntValue>
- Parameters:
that
- The object to compare with- Returns:
- 0 if equal, -1 if less than or 1 if greater than
-
equals
Compares thisObject
to a givenObject
. -
greaterThan
Compares thisIntValue
with a primitiveint
value.- Parameters:
value
- theint
value to compare with- Returns:
true
if thisIntValue
is greater than the givenint
value
-
greaterThan
Compares thisIntValue
with anotherIntValue
.- Parameters:
that
- theIntValue
to compare with- Returns:
true
if thisIntValue
is greater than the givenIntValue
-
hashCode
Returns the hash code for thisObject
. -
lessThan
Compares thisIntValue
with a primitiveint
value.- Parameters:
that
- theint
value to compare with- Returns:
true
if thisIntValue
is less than the givenint
value
-
lessThan
Compares thisIntValue
with anotherIntValue
.- Parameters:
that
- theIntValue
to compare with- Returns:
true
if thisIntValue
is less than the givenIntValue
-
toString
Converts thisLongValue
to aString
.
-