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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal intfinal booleanCompares thisObjectto a givenObject.final booleangreaterThan(int value) Compares thisIntValuewith a primitiveintvalue.final booleangreaterThan(IntValue that) Compares thisIntValuewith anotherIntValue.final inthashCode()Returns the hash code for thisObject.final booleanlessThan(int that) Compares thisIntValuewith a primitiveintvalue.final booleanCompares thisIntValuewith anotherIntValue.toString()Converts thisLongValueto aString.
-
Field Details
-
value
theintvalue
-
-
Constructor Details
-
IntValue
Constructor.- Parameters:
value- theintvalue
-
-
Method Details
-
compareTo
- Specified by:
compareToin interfaceComparable<IntValue>- Parameters:
that- The object to compare with- Returns:
- 0 if equal, -1 if less than or 1 if greater than
-
equals
Compares thisObjectto a givenObject. -
greaterThan
Compares thisIntValuewith a primitiveintvalue.- Parameters:
value- theintvalue to compare with- Returns:
trueif thisIntValueis greater than the givenintvalue
-
greaterThan
Compares thisIntValuewith anotherIntValue.- Parameters:
that- theIntValueto compare with- Returns:
trueif thisIntValueis greater than the givenIntValue
-
hashCode
Returns the hash code for thisObject. -
lessThan
Compares thisIntValuewith a primitiveintvalue.- Parameters:
that- theintvalue to compare with- Returns:
trueif thisIntValueis less than the givenintvalue
-
lessThan
Compares thisIntValuewith anotherIntValue.- Parameters:
that- theIntValueto compare with- Returns:
trueif thisIntValueis less than the givenIntValue
-
toString
Converts thisLongValueto aString.
-