Timecode
Inheritance: java.lang.Object, com.aspose.imaging.xmp.types.XmpTypeBase
All Implemented Interfaces: com.aspose.ms.System.IEquatable
public final class Timecode extends XmpTypeBase implements System.IEquatable<Timecode>
Represents timecode value in video.
Constructors
| Constructor | Description |
|---|---|
| Timecode(TimeFormat format, String timeValue) | Initializes a new instance of the Timecode class. |
Methods
| Method | Description |
|---|---|
| getFormat() | Gets or sets the format used in the TimeValue. |
| setFormat(TimeFormat value) | Gets or sets the format used in the TimeValue. |
| getTimeValue() | Gets or sets the time value in the specified format. |
| setTimeValue(String value) | Gets or sets the time value in the specified format. |
| getXmpRepresentation() | Returns the string contained value in XMP format. |
| isEquals(Timecode other) | Indicates whether the current object is equal to another object of the same type. |
| equals(Object obj) | Determines whether the specified System.Object, is equal to this instance. |
| hashCode() | Returns a hash code for this instance. |
Timecode(TimeFormat format, String timeValue)
public Timecode(TimeFormat format, String timeValue)
Initializes a new instance of the Timecode class.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| format | TimeFormat | The time format. |
| timeValue | java.lang.String | The time value. |
getFormat()
public TimeFormat getFormat()
Gets or sets the format used in the TimeValue.
Value: The format used in the TimeValue.
Returns: TimeFormat
setFormat(TimeFormat value)
public void setFormat(TimeFormat value)
Gets or sets the format used in the TimeValue.
Value: The format used in the TimeValue.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | TimeFormat |
getTimeValue()
public String getTimeValue()
Gets or sets the time value in the specified format.
Value: The time value in the specified format.
Returns: java.lang.String
setTimeValue(String value)
public void setTimeValue(String value)
Gets or sets the time value in the specified format.
Value: The time value in the specified format.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | java.lang.String |
getXmpRepresentation()
public String getXmpRepresentation()
Returns the string contained value in XMP format.
Returns: java.lang.String - Returns the string containing xmp representation.
isEquals(Timecode other)
public boolean isEquals(Timecode other)
Indicates whether the current object is equal to another object of the same type.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| other | Timecode | An object to compare with this object. |
Returns:
boolean - true if the current object is equal to the other parameter; otherwise, false.
equals(Object obj)
public boolean equals(Object obj)
Determines whether the specified System.Object, is equal to this instance.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| obj | java.lang.Object | The System.Object to compare with this instance. |
Returns:
boolean - true if the specified System.Object is equal to this instance; otherwise, false.
hashCode()
public int hashCode()
Returns a hash code for this instance.
Returns: int - A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.