public class DurationQuery extends Query
NativeObject.Initializer
GTYPE_NAME
defaultInit, 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.
|
String |
toString()
Gets the duration as a user-readable string.
|
getStructure, makeWritable
disposeNativeHandle, isWritable, makeWritable, ref, unref
classFor, disown, dispose, equals, finalize, getNativeAddress, handle, hashCode, initializer, initializer, instanceFor, invalidate, isDisposed, nativeValue, objectFor, objectFor, objectFor, objectFor
public 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 String toString()
toString
in class NativeObject
Copyright © 2016. All rights reserved.