TYPE
- the actual content type of this base data entity.public abstract class BaseData<TYPE extends Comparable<? super TYPE>> extends Object implements Comparable<TYPE>
Modifier | Constructor and Description |
---|---|
protected |
BaseData(int aIdx,
int aChannelIdx,
int aStartSampleIdx,
int aEndSampleIdx)
Creates a new BaseData instance.
|
protected |
BaseData(int aIdx,
int aChannelIdx,
int aStartSampleIdx,
int aEndSampleIdx,
String aEventName)
Creates a new BaseData instance.
|
protected |
BaseData(int aIdx,
int aChannelIdx,
int aSampleIdx,
String aEventName)
Creates a new BaseData instance.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(TYPE aComparable) |
boolean |
equals(Object aObject) |
int |
getChannelIdx()
Returns the channel index this data belongs to.
|
int |
getEndSampleIndex()
Returns the start sample (array) index on which this data/event ended.
|
String |
getEventName()
Returns the event name, in case this data represents an event.
|
int |
getIndex()
Returns the index of this data event/value.
|
int |
getStartSampleIndex()
Returns the start sample (array) index on which this data/event started.
|
int |
hashCode() |
boolean |
isEvent()
Returns whether this data represents an event.
|
protected BaseData(int aIdx, int aChannelIdx, int aStartSampleIdx, int aEndSampleIdx)
protected BaseData(int aIdx, int aChannelIdx, int aStartSampleIdx, int aEndSampleIdx, String aEventName)
protected BaseData(int aIdx, int aChannelIdx, int aSampleIdx, String aEventName)
public int compareTo(TYPE aComparable)
compareTo
in interface Comparable<TYPE extends Comparable<? super TYPE>>
Comparable.compareTo(java.lang.Object)
public boolean equals(Object aObject)
equals
in class Object
Object.equals(java.lang.Object)
public final int getChannelIdx()
public final int getEndSampleIndex()
getStartSampleIndex()
public final String getEventName()
null
.isEvent()
public final int getIndex()
public final int getStartSampleIndex()
getEndSampleIndex()
public int hashCode()
hashCode
in class Object
Object.hashCode()
public boolean isEvent()
By default, an event is characterized by having a defined event name.
true
if this data represents an event,
false
otherwise.Copyright © 2015 L'Xtreme IT consultancy. All rights reserved.