org.xwiki.diff.display.internal
Class LineSplitter
java.lang.Object
org.xwiki.diff.display.internal.LineSplitter
- All Implemented Interfaces:
- Splitter<String,String>
@Component
@Named(value="line")
@Singleton
public class LineSplitter
- extends Object
- implements Splitter<String,String>
Splits a text into multiple lines.
- Since:
- 4.1RC1
Method Summary |
List<String> |
split(String composite)
Splits the given composite object in multiple parts of the same type. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LineSplitter
public LineSplitter()
split
public List<String> split(String composite)
- Description copied from interface:
Splitter
- Splits the given composite object in multiple parts of the same type.
- Specified by:
split
in interface Splitter<String,String>
- Parameters:
composite
- the object to split
- Returns:
- the list of objects that make the given composite object