|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.wicket.util.value.LongValue
public class LongValue
A base class based on the Java long
primitive for value classes that want to
implement standard operations on that value without the pain of aggregating a Long
object.
Field Summary | |
---|---|
protected long |
value
the long value |
Constructor Summary | |
---|---|
LongValue(long value)
Constructor. |
Method Summary | |
---|---|
int |
compareTo(LongValue that)
Compares this Object to a given Object . |
boolean |
equals(Object that)
Tests for equality. |
boolean |
greaterThan(long value)
Compares this LongValue with a primitive long value. |
boolean |
greaterThan(LongValue that)
Compares this LongValue with another LongValue . |
int |
hashCode()
Returns the hash code for this Object . |
boolean |
lessThan(long that)
Compares this LongValue with a primitive long value. |
boolean |
lessThan(LongValue that)
Compares this LongValue with another LongValue . |
String |
toString()
Converts this LongValue to a String . |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected final long value
long
value
Constructor Detail |
---|
public LongValue(long value)
value
- the long
valueMethod Detail |
---|
public final int compareTo(LongValue that)
Object
to a given Object
.
compareTo
in interface Comparable<LongValue>
that
- the Object
to compare with
Object
's value, or 1 if greater
than given Object
's valuepublic final boolean equals(Object that)
equals
in class Object
that
- the Object
to compare with
true
if this Object
's value is equal to the given
Object
's valuepublic final boolean greaterThan(long value)
LongValue
with a primitive long
value.
value
- the long
value to compare with
true
if this LongValue
is greater than the given
long
valuepublic final boolean greaterThan(LongValue that)
LongValue
with another LongValue
.
that
- the LongValue
to compare with
true
if this LongValue
is greater than the given
LongValue
public final int hashCode()
Object
.
hashCode
in class Object
Object
public final boolean lessThan(long that)
LongValue
with a primitive long
value.
that
- the long
value to compare with
true
if this LongValue
is less than the given
long
valuepublic final boolean lessThan(LongValue that)
LongValue
with another LongValue
.
that
- the LongValue
value to compare with
true
if this LongValue
is less than the given
LongValue
public String toString()
LongValue
to a String
.
toString
in class Object
String
representation of this LongValue
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |