Package org.cip4.jdflib.util
Class MyLong
java.lang.Object
org.cip4.jdflib.util.MyLong
- All Implemented Interfaces:
Comparator<MyLong>
very simple and fast mutable long integer class
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Comparator
reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Field Details
-
i
public long ithe long value of this
-
-
Constructor Details
-
MyLong
public MyLong(long _i) - Parameters:
_i- the initial long to set this to
-
-
Method Details
-
toString
-
equals
- Specified by:
equalsin interfaceComparator<MyLong>- Overrides:
equalsin classObject- See Also:
-
hashCode
public int hashCode() -
compare
- Specified by:
comparein interfaceComparator<MyLong>- Parameters:
o1- the first MyIntegero2- the secondMyInteger- Returns:
- o1-o2
- See Also:
-