@Deprecated public final class ChannelAnnotation extends Object implements Comparable<ChannelAnnotation>
Constructor and Description |
---|
ChannelAnnotation(long aStartIndex,
long aEndIndex,
Object aData)
Deprecated.
Creates a new ChannelAnnotation instance.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(ChannelAnnotation aAnnotation)
Deprecated.
|
boolean |
equals(Object obj)
Deprecated.
|
Object |
getData()
Deprecated.
|
long |
getEndTimestamp()
Deprecated.
|
long |
getStartTimestamp()
Deprecated.
|
int |
hashCode()
Deprecated.
|
boolean |
isInRange(long aTimestamp)
Deprecated.
Returns whether this annotation starts before the given index and ends
after the given index.
|
boolean |
isInRange(long aStartIndex,
long aEndIndex)
Deprecated.
Returns whether this annotation's start index is before the given end index
and its end index is after the given start index.
|
String |
toString()
Deprecated.
|
public ChannelAnnotation(long aStartIndex, long aEndIndex, Object aData)
aStartIndex
- the sample index on which this annotation starts;aEndIndex
- the end index on which this annotation ends;aData
- the actual annotated data.public int compareTo(ChannelAnnotation aAnnotation)
compareTo
in interface Comparable<ChannelAnnotation>
Comparable.compareTo(java.lang.Object)
public Object getData()
public long getEndTimestamp()
public long getStartTimestamp()
public boolean isInRange(long aTimestamp)
aIndex
- the index.true
if this annotation is valid at the given index
(see above), false
otherwise.public boolean isInRange(long aStartIndex, long aEndIndex)
aStartIndex
- the starting index;aEndIndex
- the ending index.true
if this annotation is valid between the given
range (see above), false
otherwise.public String toString()
toString
in class Object
Object.toString()
Copyright © 2015 L'Xtreme IT consultancy. All rights reserved.