public class ContextSize extends Object
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
static ContextSize |
get(int size) |
static ContextSize |
get(int left,
int right) |
static ContextSize |
get(int left,
int right,
boolean includeHit) |
int |
hashCode() |
static ContextSize |
hitOnly() |
boolean |
includeHit()
Should the hit itself be included in the context or not?
By default it always is, but for some operations you only need
the left context.
|
int |
left() |
int |
right() |
String |
toString() |
static ContextSize |
union(ContextSize a,
ContextSize b)
Return the minimal context size that encompasses both parameters.
|
public static ContextSize get(int left, int right, boolean includeHit)
public static ContextSize get(int left, int right)
public static ContextSize get(int size)
public static ContextSize hitOnly()
public int left()
public static ContextSize union(ContextSize a, ContextSize b)
a
- first context sizeb
- second context sizepublic int right()
public boolean includeHit()
Copyright © 2020 Instituut voor Nederlandse Taal (INT). All rights reserved.