public class

IntegerSegment

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

Class Overview

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

Summary

Public Constructors
IntegerSegment(int address, int size)
Public Methods
int compareTo(IntegerSegment second)
boolean equals(Object obj)
Integer getBegin()
Get the address where the segment starts.
Integer getEnd()
Get the address where the segment ends (exclusive).
int getSize()
int hashCode()
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 IntegerSegment (int address, int size)

Public Methods

public int compareTo (IntegerSegment second)

public boolean equals (Object obj)

public Integer getBegin ()

Get the address where the segment starts.

Returns
  • the address where the segment begins

public Integer getEnd ()

Get the address where the segment ends (exclusive).

Returns
  • the address where the segment ends

public int getSize ()

public int hashCode ()

public String toString ()