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 TypeMethodDescriptionintcompareTo(LongSegment second) getBegin()Get the address where the segment starts.getEnd()Get the address where the segment ends (exclusive).longgetSize()static LongSegmenttoString()
-
Constructor Details
-
LongSegment
public LongSegment(long address, long size)
-
-
Method Details
-
compareTo
- Specified by:
compareToin interfaceComparable<LongSegment>
-
getBegin
Description copied from interface:ISegmentGet the address where the segment starts. -
getEnd
Description copied from interface:ISegmentGet the address where the segment ends (exclusive). -
getSize
public long getSize() -
merge
-
toString
-