Top Inners Fields Constructors Methods
impl.org.controlsfx.tableview2.filter.parser.number

public Class NumberParser<T extends Number>

extends Object
implements Parser<T extends Number>
Class Inheritance
All Implemented Interfaces
org.controlsfx.control.tableview2.filter.parser.Parser
Imports
impl.org.controlsfx.tableview2.filter.parser.Operation, impl.org.controlsfx.tableview2.filter.parser.aggregate.AggregatorsParser, org.controlsfx.control.tableview2.filter.parser.Parser, java.util.Arrays, .List, .Optional, java.util.function.Predicate, java.util.stream.Collectors, .Stream

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static enum

Field Summary

Modifier and TypeField and Description
private String

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private double
convert(String numText)

public String
getErrorMessage()

Implements org.controlsfx.control.tableview2.filter.parser.Parser.getErrorMessage.

A string with the error message if the parser fails to parse the supplied string.

public String
getSymbol(String text)

Implements org.controlsfx.control.tableview2.filter.parser.Parser.getSymbol.

Return the symbol related to an operator text which can be used with this parser.

private static String
private boolean
public boolean
isValid(String text)

Implements org.controlsfx.control.tableview2.filter.parser.Parser.isValid.

Checks if the supplied text is valid or not.

public List<String>
operators()

Implements org.controlsfx.control.tableview2.filter.parser.Parser.operators.

Returns the list of operators which can be used with this parser.

public Predicate<T>
private String
trim(String text, int startIndex)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

errorStringback to summary
private String errorString

Constructor Detail

NumberParserback to summary
public NumberParser()

Method Detail

convertback to summary
private double convert(String numText)
getErrorMessageback to summary
public String getErrorMessage()

Implements org.controlsfx.control.tableview2.filter.parser.Parser.getErrorMessage.

Doc from org.controlsfx.control.tableview2.filter.parser.Parser.getErrorMessage.

A string with the error message if the parser fails to parse the supplied string.

Annotations
@Override
getSymbolback to summary
public String getSymbol(String text)

Implements org.controlsfx.control.tableview2.filter.parser.Parser.getSymbol.

Doc from org.controlsfx.control.tableview2.filter.parser.Parser.getSymbol.

Return the symbol related to an operator text which can be used with this parser.

Annotations
@Override
i18nStringback to summary
private static String i18nString(String key)
isNumericback to summary
private boolean isNumeric(String str)
isValidback to summary
public boolean isValid(String text)

Implements org.controlsfx.control.tableview2.filter.parser.Parser.isValid.

Doc from org.controlsfx.control.tableview2.filter.parser.Parser.isValid.

Checks if the supplied text is valid or not.

Annotations
@Override
operatorsback to summary
public List<String> operators()

Implements org.controlsfx.control.tableview2.filter.parser.Parser.operators.

Doc from org.controlsfx.control.tableview2.filter.parser.Parser.operators.

Returns the list of operators which can be used with this parser.

Annotations
@Override
parseback to summary
public Predicate<T> parse(String text)

Implements org.controlsfx.control.tableview2.filter.parser.Parser.parse.

Annotations
@Override
trimback to summary
private String trim(String text, int startIndex)
impl.org.controlsfx.tableview2.filter.parser.number back to summary

private sealed Enum NumberParser.NumberOperation

extends Enum<NumberParser.NumberOperation>
implements Operation<Number, Number>
Class Inheritance
All Implemented Interfaces
impl.org.controlsfx.tableview2.filter.parser.Operation

Field Summary

Modifier and TypeField and Description
public static final NumberParser.NumberOperation
public static final NumberParser.NumberOperation
public static final NumberParser.NumberOperation
public static final NumberParser.NumberOperation
public static final NumberParser.NumberOperation
public static final NumberParser.NumberOperation
private final String
private final String

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public String
public String
public int
public static NumberParser.NumberOperation
public static NumberParser.NumberOperation[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

EQUALSback to summary
public static final NumberParser.NumberOperation EQUALS
GREATER_THANback to summary
public static final NumberParser.NumberOperation GREATER_THAN
GREATER_THAN_EQUALSback to summary
public static final NumberParser.NumberOperation GREATER_THAN_EQUALS
LESS_THANback to summary
public static final NumberParser.NumberOperation LESS_THAN
LESS_THAN_EQUALSback to summary
public static final NumberParser.NumberOperation LESS_THAN_EQUALS
NOT_EQUALSback to summary
public static final NumberParser.NumberOperation NOT_EQUALS
oprback to summary
private final String opr
symbolback to summary
private final String symbol

Constructor Detail

NumberOperationback to summary
private NumberOperation(String opr, String symbol)

Method Detail

getback to summary
public String get()

Implements impl.org.controlsfx.tableview2.filter.parser.Operation.get.

Annotations
@Override
getSymbolback to summary
public String getSymbol()

Implements impl.org.controlsfx.tableview2.filter.parser.Operation.getSymbol.

Annotations
@Override
lengthback to summary
public int length()

Implements impl.org.controlsfx.tableview2.filter.parser.Operation.length.

Annotations
@Override
valueOfback to summary
public static NumberParser.NumberOperation valueOf(String name)
valuesback to summary
public static NumberParser.NumberOperation[] values()