Class ExtractedElement
Object
com.owenfeehan.pathpatternfinder.patternelements.ExtractedElement
public class ExtractedElement extends Object
The result of partition a string into two components, one left (prefix) and one right (suffix)
- Author:
- Owen Feehan
-
Constructor Summary
Constructors Constructor Description ExtractedElement(String stringToSplit, int indexSecondPart)
Alternative constructor where a string is passed, and then split into two by an indexExtractedElement(String extracted, String remainder)
Constructor -
Method Summary
Modifier and Type Method Description String
getExtracted()
The left-most part of stringString
getRemainder()
The right-most part of string
-
Constructor Details
-
ExtractedElement
Constructor- Parameters:
extracted
- left-most part of stringremainder
- right-most part of string
-
ExtractedElement
Alternative constructor where a string is passed, and then split into two by an index- Parameters:
stringToSplit
- string to splitindexSecondPart
- the starting in index of the second part, so that extracted=[0,indexSecondPart-1] and remainder=[indexSecondPart..]
-
-
Method Details
-
getExtracted
The left-most part of string- Returns:
- the left-most part of string.
-
getRemainder
The right-most part of string- Returns:
- the right-most part of string.
-