Package com.pnfsoftware.jeb.util.collect
Class LongSegment
java.lang.Object
com.pnfsoftware.jeb.util.collect.LongSegment
- All Implemented Interfaces:
ISegment<Long>
,Comparable<LongSegment>
Standard implementation of a segment using an
long
treated as a signed value. Immutable.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
LongSegment
public LongSegment(long address, long size)
-
-
Method Details
-
compareTo
- Specified by:
compareTo
in interfaceComparable<LongSegment>
-
getBegin
Description copied from interface:ISegment
Get the address where the segment starts. -
getEnd
Description copied from interface:ISegment
Get the address where the segment ends (exclusive). -
getSize
public long getSize() -
toString
-