public class Part extends Object
| Constructor and Description |
|---|
Part(char c,
boolean collapseAlphaNumeric) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
consume(Part p)
If the type of the Part passed in matches our type, we consume it, meaning that it becomes
part of this Part.
|
boolean |
matches(Part p,
boolean strict) |
String |
toString(boolean strict) |
public boolean consume(Part p)
p - the next part in a sequence of partscollapseAlphaNumeric - letters and digits will be considered equivalent so they will be gathered
together into a single tokenpublic boolean matches(Part p, boolean strict)
public String toString(boolean strict)
Copyright © 2023. All rights reserved.