public class CommentBlockPartitioner extends Object implements Partitioner
| Constructor and Description |
|---|
CommentBlockPartitioner(String startComment,
String endComment) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
getEndComment() |
String |
getFirstLine(String id,
boolean enabled,
RegionType regionType) |
String |
getLastLine(String id,
RegionType regionType) |
String |
getStartComment() |
int |
hashCode() |
Output |
partition(String text) |
Output |
partition(String text,
int offset) |
protected RegionType |
regionTypeFromString(String regionType) |
protected String |
regionTypeToString(RegionType regionType) |
String |
toString() |
public String getStartComment()
public String getEndComment()
public String getFirstLine(String id, boolean enabled, RegionType regionType)
protected String regionTypeToString(RegionType regionType)
protected RegionType regionTypeFromString(String regionType)
public String getLastLine(String id, RegionType regionType)
public Output partition(String text)
partition in interface Partitionerpublic Output partition(String text, int offset)
partition in interface PartitionerCopyright © 2020. All rights reserved.