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
Modifier and TypeMethodDescriptionint
compareTo
(LongSegment second) getBegin()
Get the address where the segment starts.getEnd()
Get the address where the segment ends (exclusive).long
getSize()
static LongSegment
toString()
-
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() -
merge
-
toString
-