public abstract class RecordOnlyFilter extends QDFilter
CompositeFilters
.
All filters that extend this class are stable
by definition.QDFilter.Kind, QDFilter.SyntaxPrecedence, QDFilter.Updated, QDFilter.UpdateListener
Modifier | Constructor and Description |
---|---|
protected |
RecordOnlyFilter(DataScheme scheme) |
Modifier and Type | Method and Description |
---|---|
boolean |
accept(QDContract contract,
DataRecord record,
int cipher,
String symbol)
Returns true if this filter accepts a given record and symbol on the specified contract.
|
abstract boolean |
acceptRecord(DataRecord record) |
QDFilter.Kind |
getKind()
Returns a kind of this filter that constrains and defines its overall behaviour.
|
boolean |
isDynamic()
This final implementation always returns
false . |
boolean |
isFast()
This final implementation always returns
true . |
boolean |
isStable()
This final implementation always returns
true . |
QDFilter |
negate()
Returns negation of this filter.
|
QDFilter |
toStableFilter()
This final implementation always returns this.
|
static RecordOnlyFilter |
valueOf(String spec,
DataScheme scheme)
Parses a given specification as record-only filter for a given scheme.
|
accept, acceptRecord, addUpdateListener, checkShortName, dynamicTrackingStart, dynamicTrackingStop, fireFilterUpdated, fromFilter, getDefaultName, getScheme, getSymbolSet, getSyntaxPrecedence, getUpdated, getUpdatedFilter, hasShortName, produceUpdatedFilter, removeUpdateListener, setName, setNameOrDefault, setShortName, toString, unwrap
protected RecordOnlyFilter(DataScheme scheme)
public static RecordOnlyFilter valueOf(String spec, DataScheme scheme)
spec
- the filter specification.scheme
- the scheme.com.devexperts.util.InvalidFormatException
- if spec is invalid.public final boolean accept(QDContract contract, DataRecord record, int cipher, String symbol)
QDFilter
public abstract boolean acceptRecord(DataRecord record)
public final QDFilter.Kind getKind()
QDFilter
public QDFilter negate()
QDFilter
new NotFilter
(this)
.public final boolean isStable()
true
.isStable
in class QDFilter
QDFilter.toStableFilter()
public final boolean isDynamic()
false
.public final boolean isFast()
true
.public final QDFilter toStableFilter()
toStableFilter
in interface StableSubscriptionFilter
toStableFilter
in class QDFilter
Copyright © 2002-2018 Devexperts LLC. All Rights Reserved.