# Interface: com.pnfsoftware.jeb.util.collect.ISegment

The value type used by [segment\-maps](ISegmentMap), a segment has a beginning and end. Those values are referred to as segments. Segments have a key \(referred to as address\), and span over a range up to their end address. The end address should be **strictly greater** than the start address.

## Method: getBegin
- return type: `K`

Description: Get the address where the segment starts.
return: the address where the segment begins

## Method: getEnd
- return type: `K`

Description: Get the address where the segment ends \(exclusive\).
return: the address where the segment ends

