/**
* An extension of TmfDataRequest for timestamped events.
*
- * @param <T> The request event type
- *
* @version 1.0
* @author Francois Chouinard
*/
-public abstract class TmfEventRequest<T extends ITmfEvent> extends TmfDataRequest<T> implements ITmfEventRequest<T> {
+public abstract class TmfEventRequest extends TmfDataRequest implements ITmfEventRequest {
// ------------------------------------------------------------------------
// Attributes
*
* @param dataType the requested data type
*/
- public TmfEventRequest(Class<T> dataType) {
+ public TmfEventRequest(Class<? extends ITmfEvent> dataType) {
this(dataType, TmfTimeRange.ETERNITY, 0, ALL_DATA, DEFAULT_BLOCK_SIZE, ExecutionType.FOREGROUND);
}
* @param dataType the requested data type
* @param priority the requested execution priority
*/
- public TmfEventRequest(Class<T> dataType, ExecutionType priority) {
+ public TmfEventRequest(Class<? extends ITmfEvent> dataType, ExecutionType priority) {
this(dataType, TmfTimeRange.ETERNITY, 0, ALL_DATA, DEFAULT_BLOCK_SIZE, priority);
}
* @param dataType the requested data type
* @param range the time range of the requested events
*/
- public TmfEventRequest(Class<T> dataType, TmfTimeRange range) {
+ public TmfEventRequest(Class<? extends ITmfEvent> dataType, TmfTimeRange range) {
this(dataType, range, 0, ALL_DATA, DEFAULT_BLOCK_SIZE, ExecutionType.FOREGROUND);
}
* @param range the time range of the requested events
* @param priority the requested execution priority
*/
- public TmfEventRequest(Class<T> dataType, TmfTimeRange range, ExecutionType priority) {
+ public TmfEventRequest(Class<? extends ITmfEvent> dataType, TmfTimeRange range, ExecutionType priority) {
this(dataType, range, 0, ALL_DATA, DEFAULT_BLOCK_SIZE, priority);
}
* @param range the time range of the requested events
* @param nbRequested the number of events requested
*/
- public TmfEventRequest(Class<T> dataType, TmfTimeRange range, int nbRequested) {
+ public TmfEventRequest(Class<? extends ITmfEvent> dataType, TmfTimeRange range, int nbRequested) {
this(dataType, range, 0, nbRequested, DEFAULT_BLOCK_SIZE, ExecutionType.FOREGROUND);
}
* @param nbRequested the number of events requested
* @param priority the requested execution priority
*/
- public TmfEventRequest(Class<T> dataType, TmfTimeRange range, int nbRequested, ExecutionType priority) {
+ public TmfEventRequest(Class<? extends ITmfEvent> dataType, TmfTimeRange range, int nbRequested, ExecutionType priority) {
this(dataType, range, 0, nbRequested, DEFAULT_BLOCK_SIZE, priority);
}
* @param nbRequested the number of events requested
* @param blockSize the number of events per block
*/
- public TmfEventRequest(Class<T> dataType, TmfTimeRange range, int nbRequested, int blockSize) {
+ public TmfEventRequest(Class<? extends ITmfEvent> dataType, TmfTimeRange range, int nbRequested, int blockSize) {
this(dataType, range, 0, nbRequested, blockSize, ExecutionType.FOREGROUND);
}
* @param nbRequested the number of events requested
* @param blockSize the number of events per block
*/
- public TmfEventRequest(Class<T> dataType, TmfTimeRange range, long index, int nbRequested, int blockSize) {
+ public TmfEventRequest(Class<? extends ITmfEvent> dataType, TmfTimeRange range, long index, int nbRequested, int blockSize) {
this(dataType, range, index, nbRequested, blockSize, ExecutionType.FOREGROUND);
}
* @param blockSize the number of events per block
* @param priority the requested execution priority
*/
- public TmfEventRequest(Class<T> dataType, TmfTimeRange range, int nbRequested, int blockSize, ExecutionType priority) {
+ public TmfEventRequest(Class<? extends ITmfEvent> dataType, TmfTimeRange range, int nbRequested, int blockSize, ExecutionType priority) {
this(dataType, range, 0, nbRequested, blockSize, priority);
}
* @param blockSize the number of events per block
* @param priority the requested execution priority
*/
- public TmfEventRequest(Class<T> dataType, TmfTimeRange range, long index, int nbRequested, int blockSize, ExecutionType priority) {
+ public TmfEventRequest(Class<? extends ITmfEvent> dataType, TmfTimeRange range, long index, int nbRequested, int blockSize, ExecutionType priority) {
super(dataType, index, nbRequested, blockSize, priority);
fRange = range;
@Override
public boolean equals(Object other) {
- if (other instanceof TmfEventRequest<?>) {
- TmfEventRequest<?> request = (TmfEventRequest<?>) other;
+ if (other instanceof TmfEventRequest) {
+ TmfEventRequest request = (TmfEventRequest) other;
return super.equals(other) && request.fRange.equals(fRange);
}
return false;