Key

Inheritance: java.lang.Object, com.aspose.ms.System.ValueType, com.aspose.ms.lang.Struct

public class Key<T,K> extends Struct<Key<T,K>>

Represents a property key of a class of the specified type. An instance of this class is used when getting or setting property of a container.

T : The type of property value. K : The type of property key.

Methods

MethodDescription
Clone()Returns deep copy of the instance.
CloneTo(Key<T,K> that)Makes a deep copy of the instance into another instance.
clone(){@inheritDoc}
equals(Key obj1, Key obj2)Returns a value indicating whether specified obj1 instance is equal to the specified obj2 instance.
equals(Object obj){@inheritDoc}
getKeyType()Gets the key of the property.
hashCode()Returns a hash code for the instance of the Key class.

Clone()

public Key<T,K> Clone()

Returns deep copy of the instance.

Returns: Key - deep copy of the instance.

CloneTo(Key<T,K> that)

public void CloneTo(Key<T,K> that)

Makes a deep copy of the instance into another instance.

Parameters:

ParameterTypeDescription
thatKeyanother instance.

clone()

public Object clone()

Returns: java.lang.Object - {@inheritDoc}

equals(Key obj1, Key obj2)

public static boolean equals(Key obj1, Key obj2)

Returns a value indicating whether specified obj1 instance is equal to the specified obj2 instance.

Parameters:

ParameterTypeDescription
obj1com.aspose.tasks.Keythe first object to compare.
obj2com.aspose.tasks.Keythe second object to compare.

Returns: boolean - returns true if specified obj1 instance is equal to the specified obj2 instance; otherwise, false.

equals(Object obj)

public boolean equals(Object obj)

Parameters:

ParameterTypeDescription
objjava.lang.Object{@inheritDoc}

Returns: boolean - {@inheritDoc}

getKeyType()

public final K getKeyType()

Gets the key of the property.

Returns: K - the key of the property.

hashCode()

public int hashCode()

Returns a hash code for the instance of the Key class.

Returns: int - returns a hash code for this object.