public class DurationQuery extends Query
NativeObject.InitializerdefaultInit, LIFECYCLE, ownsHandle| Constructor and Description |
|---|
DurationQuery(Format format)
Constructs a new stream duration query object to query in the given format.
|
DurationQuery(NativeObject.Initializer init) |
| Modifier and Type | Method and Description |
|---|---|
long |
getDuration()
Gets the duration answer for this duration query.
|
Format |
getFormat()
Gets the format of this duration query.
|
void |
setDuration(Format format,
long duration)
Answers a duration query by setting the requested value in the given format.
|
java.lang.String |
toString()
Gets the duration as a user-readable string.
|
getStructure, makeWritabledisposeNativeHandle, isWritable, makeWritable, ref, unrefclassFor, disown, dispose, equals, finalize, getNativeAddress, handle, hashCode, initializer, initializer, instanceFor, invalidate, isDisposed, nativeValue, objectFor, objectFor, objectFor, objectForpublic DurationQuery(NativeObject.Initializer init)
public void setDuration(Format format, long duration)
format - the Format for the durationduration - the duration of the streampublic Format getFormat()
Format of the duration value.public long getDuration()
public java.lang.String toString()
toString in class NativeObject