public class Calculator extends Object
| Constructor and Description |
|---|
Calculator() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
compareCellValue(BiffRec c,
Object o,
String op)
given a BiffRec Cell Record, an Object and an operator to compare to,
return true if the comparison passes, false otherwise
|
static boolean |
compareCellValue(Object val,
String compareval,
String op) |
static PtgArea |
getRange(Ptg p)
takes a Reference Type Ptg and deferences and PtgNames, etc.
|
static int |
splitOperator(String criteria)
given a criteria string that starts with an operator,
parse and return the index that the operator ends and the crtieria starts
|
static String |
translateWildcardsInCriteria(String sCriteria)
translate Excel-style wildcards into Java wildcards in criteria string
plus handle qualified wildcard characters + percentages ...
|
public static boolean compareCellValue(BiffRec c, Object o, String op)
c - BiffRec cell recordo - Object value - one of Double, String or Booleanop - - String operator - one of "=", ">", ">=", "<", "<=" or "<>public static String translateWildcardsInCriteria(String sCriteria)
sCriteria - criteria stringpublic static int splitOperator(String criteria)
criteria - public static PtgArea getRange(Ptg p) throws IllegalArgumentException
p - IllegalArgumentExceptionCopyright © 2002–2019 Starter Inc.. All rights reserved.