|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnl.lxtreme.ols.api.data.BaseData<TYPE>
TYPE
- the actual content type of this base data entity.public abstract class BaseData<TYPE extends Comparable<? super TYPE>>
Provides a base data implementation.
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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)
Method Detail |
---|
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |