|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectcom.hankcs.hanlp.algoritm.ahocorasick.interval.Interval
public class Interval
区间
| 构造方法摘要 | |
|---|---|
Interval(int start,
int end)
构造一个区间 |
|
| 方法摘要 | |
|---|---|
int |
compareTo(Object o)
|
boolean |
equals(Object o)
|
int |
getEnd()
终点 |
int |
getStart()
起点 |
int |
hashCode()
|
boolean |
overlapsWith(int point)
区间是否覆盖了这个点 |
boolean |
overlapsWith(Interval other)
是否与另一个区间交叉(有一部分重叠) |
int |
size()
长度 |
String |
toString()
|
| 从类 java.lang.Object 继承的方法 |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| 构造方法详细信息 |
|---|
public Interval(int start,
int end)
start - end - | 方法详细信息 |
|---|
public int getStart()
Intervalable 复制的描述
Intervalable 中的 getStartpublic int getEnd()
Intervalable 复制的描述
Intervalable 中的 getEndpublic int size()
Intervalable 复制的描述
Intervalable 中的 sizepublic boolean overlapsWith(Interval other)
other -
public boolean overlapsWith(int point)
point -
public boolean equals(Object o)
Object 中的 equalspublic int hashCode()
Object 中的 hashCodepublic int compareTo(Object o)
Comparable 中的 compareTopublic String toString()
Object 中的 toString
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||