Documentation ¶
Overview ¶
区间实现
Index ¶
- func Equal(a, b IntervalBlockIface) bool
- func In(a int64, b IntervalBlockIface) bool
- func Include(a, b IntervalBlockIface) bool
- type Interval
- func (this *Interval) Add(intervalB IntervalBlockIface)
- func (this *Interval) DebugPrint()
- func (this *Interval) Empty() bool
- func (this *Interval) Exists(intervalB IntervalBlockIface) bool
- func (this *Interval) Get() []IntervalBlockIface
- func (this *Interval) In(b int64) bool
- func (this *Interval) Len() int
- func (this *Interval) Sub(intervalB IntervalBlockIface)
- type IntervalBlockIface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Equal ¶
func Equal(a, b IntervalBlockIface) bool
func In ¶
func In(a int64, b IntervalBlockIface) bool
Types ¶
type Interval ¶
type Interval struct {
// contains filtered or unexported fields
}
func NewInterval ¶
func NewInterval() *Interval
func (*Interval) DebugPrint ¶
func (this *Interval) DebugPrint()
func (*Interval) Exists ¶
func (this *Interval) Exists(intervalB IntervalBlockIface) bool
func (*Interval) Get ¶
func (this *Interval) Get() []IntervalBlockIface
func (*Interval) Sub ¶
func (this *Interval) Sub(intervalB IntervalBlockIface)
Click to show internal directories.
Click to hide internal directories.