public class

LongSegment

extends Object
implements ISegment<K extends Comparable<K>> Comparable<T>
java.lang.Object
   ↳ com.pnfsoftware.jeb.util.collect.LongSegment

Class Overview

Standard implementation of a segment using an long treated as a signed value. Immutable.

Summary

Public Constructors
LongSegment(long address, long size)
Public Methods
int compareTo(LongSegment second)
Long getBegin()
Get the address where the segment starts.
Long getEnd()
Get the address where the segment ends (exclusive).
long getSize()
String toString()
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.pnfsoftware.jeb.util.collect.ISegment
From interface java.lang.Comparable

Public Constructors

public LongSegment (long address, long size)

Public Methods

public int compareTo (LongSegment second)

public Long getBegin ()

Get the address where the segment starts.

Returns
  • the address where the segment begins

public Long getEnd ()

Get the address where the segment ends (exclusive).

Returns
  • the address where the segment ends

public long getSize ()

public String toString ()