public abstract class BaseRangeParser extends Object implements RangeParser
| Modifier and Type | Field and Description |
|---|---|
protected String |
maxMultiplier |
protected String |
maxNumber |
protected String |
minMultiplier |
protected String |
minNumber |
| Constructor and Description |
|---|
BaseRangeParser() |
| Modifier and Type | Method and Description |
|---|---|
protected Number |
getMax(Number number) |
String |
getMaxMultiplier() |
String |
getMaxNumber() |
protected Number |
getMin(Number number) |
String |
getMinMultiplier() |
String |
getMinNumber() |
protected RangeWithBounds |
getRangeWithBounds(Number first,
Number second,
String firstBound,
String secondBound)
Determine, which number is min, which is max and what bounds are.
|
protected double |
parseDoubleWithMultiplier(String number,
String suffix) |
protected long |
parseIntWithMultiplier(String number,
String suffix) |
protected long |
parseMultiplier(String suffix) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitparseprotected String minNumber
protected String minMultiplier
protected String maxNumber
protected String maxMultiplier
public String getMinNumber()
public String getMaxNumber()
public String getMinMultiplier()
public String getMaxMultiplier()
protected long parseMultiplier(String suffix)
protected RangeWithBounds getRangeWithBounds(Number first, Number second, String firstBound, String secondBound)
first - first number in the parsing sequencesecond - second number in the parsing sequencefirstBound - one of "<", "<=", ">", ">="secondBound - one of "<", "<=", ">", ">="Copyright © 2004–2019 OpenL Tablets. All rights reserved.