org.sonar.duplications.detector.suffixtree
Class AbstractText
java.lang.Object
org.sonar.duplications.detector.suffixtree.AbstractText
- All Implemented Interfaces:
- Text
- Direct Known Subclasses:
- TextSet
public abstract class AbstractText
- extends Object
- implements Text
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
symbols
protected final List<Object> symbols
AbstractText
public AbstractText(int size)
AbstractText
public AbstractText(List<Object> symbols)
length
public int length()
- Specified by:
length
in interface Text
- Returns:
- length of the sequence of symbols represented by this object
symbolAt
public Object symbolAt(int index)
- Specified by:
symbolAt
in interface Text
- Returns:
- symbol at the specified index
sequence
public List<Object> sequence(int fromIndex,
int toIndex)
- Specified by:
sequence
in interface Text
Copyright © 2009-2012 SonarSource. All Rights Reserved.