org.gstreamer
Class QueryType

java.lang.Object
  extended by org.gstreamer.QueryType
All Implemented Interfaces:
java.lang.Comparable<QueryType>

public final class QueryType
extends java.lang.Object
implements java.lang.Comparable<QueryType>

Standard predefined Query types


Field Summary
static QueryType CONVERT
          convert values between formats
static QueryType DURATION
          total duration of the stream
static QueryType FORMATS
          query supported formats for convert
static QueryType JITTER
          current jitter of stream
static QueryType LATENCY
          latency of stream
static QueryType NONE
          invalid query type
static QueryType POSITION
          current position in stream
static QueryType RATE
          current rate of the stream
static QueryType SEEKING
          seeking capabilities
static QueryType SEGMENT
          segment start/stop positions
 
Method Summary
 int compareTo(QueryType queryType)
          Compares this QueryType to another.
 boolean equals(java.lang.Object obj)
          Compares this QueryType to the specified object.
static QueryType fromNick(java.lang.String nick)
          Looks up a query type by its gstreamer nick.
 java.lang.String getName()
          gets the name of this type.
 int hashCode()
          Returns a hash code for this QueryType.
 int intValue()
          Gets the integer value of the enum.
static QueryType valueOf(int value)
          Returns the QueryType with the specified integer value.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NONE

public static final QueryType NONE
invalid query type


POSITION

public static final QueryType POSITION
current position in stream


DURATION

public static final QueryType DURATION
total duration of the stream


LATENCY

public static final QueryType LATENCY
latency of stream


JITTER

public static final QueryType JITTER
current jitter of stream


RATE

public static final QueryType RATE
current rate of the stream


SEEKING

public static final QueryType SEEKING
seeking capabilities


SEGMENT

public static final QueryType SEGMENT
segment start/stop positions


CONVERT

public static final QueryType CONVERT
convert values between formats


FORMATS

public static final QueryType FORMATS
query supported formats for convert

Method Detail

valueOf

public static QueryType valueOf(int value)
Returns the QueryType with the specified integer value.

Parameters:
value - integer value.
Returns:
QueryType constant.
Throws:
java.lang.IllegalArgumentException - if there is no QueryType with the specified value.

fromNick

public static QueryType fromNick(java.lang.String nick)
Looks up a query type by its gstreamer nick.

Parameters:
nick - the gstreamer nick.
Returns:
the query type.

intValue

public int intValue()
Gets the integer value of the enum.

Returns:
the integer value for this enum.

getName

public java.lang.String getName()
gets the name of this type.

Returns:
the gstreamer name for this type.

equals

public boolean equals(java.lang.Object obj)
Compares this QueryType to the specified object.

The result is true if and only if the argument is not null and is a QueryType object equivalent to this QueryType

Overrides:
equals in class java.lang.Object
Parameters:
obj -
Returns:
true if the specified object is equivalent to this QueryType

hashCode

public int hashCode()
Returns a hash code for this QueryType.

Overrides:
hashCode in class java.lang.Object
Returns:
a hash code value for this QueryType.
See Also:
Integer.hashCode()

compareTo

public int compareTo(QueryType queryType)
Compares this QueryType to another.

Specified by:
compareTo in interface java.lang.Comparable<QueryType>
Parameters:
queryType - the other QueryType to compare to.
Returns:
0 if this QueryType is equal to queryType. A value less than zero if this QueryType is numerically less than queryType. A value greater than zero if this QueryType is numerically greater than queryType.