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

ConstructorDescription
Timecode(TimeFormat format, String timeValue)Initializes a new instance of the Timecode class.

Methods

MethodDescription
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:

ParameterTypeDescription
formatTimeFormatThe time format.
timeValuejava.lang.StringThe 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:

ParameterTypeDescription
valueTimeFormat

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:

ParameterTypeDescription
valuejava.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:

ParameterTypeDescription
otherTimecodeAn 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:

ParameterTypeDescription
objjava.lang.ObjectThe 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.